【问题标题】:How to show images on Google Extension如何在 Google Extension 上显示图片
【发布时间】:2022-12-08 06:03:36
【问题描述】:

我创建了一个 Google Extension,就像 Google Translator Extension 一样。将我的扩展程序上传到 Google 后,当我选择一个词时它不显示图像。它在我的本地运行良好,但在服务器上我在控制台 上看到此消息。有没有办法解决这个问题?

我使用 React.js 和 Material UI。

【问题讨论】:

    标签: javascript html css reactjs sass


    【解决方案1】:

    在你的 manifest.json 中

    添加这一行

    "web_accessible_resources": [{ "resources": ["your_image_path"], "matches": ["<all_urls>"] }],
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-24
      • 1970-01-01
      • 2019-09-23
      • 1970-01-01
      • 2016-08-22
      • 2011-01-28
      • 2021-04-06
      • 2019-10-08
      相关资源
      最近更新 更多