你能再帮我解决这个问题吗?Uncaught Error: Extension context invalidated.
我在 chrome://extensions 中遇到错误。
我正在尝试制作一个计时器,每当您空闲时,假设 5 秒就会触发警报,您需要移动鼠标来停止警报,并且我需要将其与其他打开的选项卡同步,这就是我使用的chrome.storage.onChanged.addListener
原因谢谢wOxxOm的推荐。它工作得很好,但我收到了这个错误。
*manifest.json*
{
"manifest_version": 2,
"name": "Toool",
"description": "Description ....",
"version": "1.0.0",
"icons": { "128": "icon_128.png" },
"permissions": ["activeTab", "storage"],
"content_scripts": [
{
"matches": [
"*://*.google.com/*"
],
"css":[
"bootstrap/css/bootstrap-iso.css",
"css/animate.min.css",
"css/all.css",
"css/style.css"
],
"js": [
"js/jquery.min.js",
"js/contentscript.js"
]
}
],
"web_accessible_resources": [
"index.html",
"audio/*",
"webfonts/*"
]
}
Run Code Online (Sandbox Code Playgroud)
*contentscript.js*
// So here is what I've been working so far..
//Instead of popup, I am using this …
Run Code Online (Sandbox Code Playgroud)