【发布时间】:2021-03-14 22:13:22
【问题描述】:
默认位置:
当我检查时:
然后我点击页面任意位置隐藏dom扩展的输出(不显示popup.html);
但是当我再次打开扩展时,它是未选中的(默认位置):
我需要每次打开 Chrome 扩展程序时不要将其重置为默认位置。
也许我需要在 manifest.json 中使用一些属性?
manifest.json:
{
"version": "0.0.1",
"author": "a",
"short_name": "b",
"update_url": "https://clients2.google.com/service/update2/crx",
"description": "a",
"manifest_version": 2,
"name": "a",
"browser_action": {
"default_popup": "popup.html",
"default_title": "abc"
},
"permissions": [
"activeTab",
"cookies",
"clipboardWrite",
"storage",
"background",
"<all_urls>",
"tabs"
]
}
【问题讨论】:
标签: javascript google-chrome-extension manifest.json