gpt4 book ai didi

javascript - 读取 list : Error processing options_page: An unexpected property was found in the WebExtension

转载 作者:行者123 更新时间:2023-12-05 00:27:32 25 4
gpt4 key购买 nike

尝试在 Mozilla Firefox 中加载 chrome 扩展时。我有错误:

Reading manifest: Error processing options_page: An unexpected property was found in the WebExtension Reading manifest: Error processing options_page: An unexpected property was found in the WebExtension manifest.


{
"name": "EXTENSION",
"options_page": "options.html",
"background": {
"page": "background.html"
},
"browser_action": {
"default_popup": "popup.html",
"default_icon": "icon-34.png"
},
"commands": {
"_execute_browser_action": {
"suggested_key": {
"default": "Ctrl+A"
}
}
},
"icons": {
"128": "icon-128.png"
},
"permissions": [
"https://*/",
"http://*/"
],
"version": "1.0",
"manifest_version": 2,
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'"
}

最佳答案

“此 list key 已被弃用。请改用 options_ui。”

 "options_ui": {
"page": "options.html",
"open_in_tab": false
},

引用:

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/options_ui

https://developer.chrome.com/extensions/options

关于javascript - 读取 list : Error processing options_page: An unexpected property was found in the WebExtension,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57769255/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com