我正在 Chrome 中构建一个扩展,但如果我不打开插件的调试模式,它总是处于非活动状态,这会导致当我进入目标页面时插件无法工作,例如:dms.mydomain-inc.com
当我访问注册页面时如何使其永久有效manifest.json?这是我的manifest.json
{
"name": "Tool for test",
"description": "Build an Extension!",
"version": "1.0",
"manifest_version": 3,
"background": {
"service_worker": "background.js",
"persistent": true
},
"options_page": "options.html",
"permissions": ["storage",
"activeTab",
"scripting",
"webRequest"],
"host_permissions": [
"*://*.mydomain.vn/*",
"*://dms.mydomain-inc.com/",
"wss://news.mydomain-inc.com/"
],
"content_scripts": [
{
"matches": ["*://news.mydomain-inc.com/"],
"css": ["css/style.css"],
"js": ["contentScript.js", "jquery-3.5.1.min.js"]
}
],
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "/images/get_started16.png",
"32": "/images/get_started32.png",
"48": "/images/get_started48.png",
"128": "/images/get_started128.png"
}
},
"icons": {
"16": "/images/get_started16.png",
"32": "/images/get_started32.png",
"48": "/images/get_started48.png",
"128": "/images/get_started128.png"
} …Run Code Online (Sandbox Code Playgroud) 我正在 spring mvc 上开发一个应用程序,有时我在控制台中看到此消息:
后台缓存逐出进程无法为上下文 [/myApp] 释放 [10]% 的缓存 - 考虑增加缓存的最大大小。驱逐后,大约 [9,501] KB 的数据保留在缓存中。
为什么以及我现在应该做什么?
谢谢大家