manifest:
{
"name": "name",
"description": "",
"version": "1.0",
"manifest_version": 2,
"browser_action": {
"default_title": "title",
"default_icon": "icons/icon32.png",
"default_popup": "modules/pages/popup.html"
},
"background":{
"scripts": [
"modules/js/background.js"
],
"persistent": true
},
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"web_accessible_resources": ["icons/icon128.png"],
"permissions": [
"tabs",
"tts",
"storage",
"notifications",
"<all_urls>"
],
"content_security_policy": "script-src 'self' https://code.jquery.com; object-src 'self';"
}
background:
chrome.tabs.onUpdated.addListener(async (tabId, info, tab) => {
if (info.status == 'complete'){
chrome.tabs.executeScript(tabId, { 'file' : 'https://code.jquery.com/jquery-3.5.1.min.js' })
}
})
Ошибка Unchecked runtime.lastError: No source code or file specified.