fix: devtools extensions not loading (#20791)

This commit is contained in:
Milan Burda 2019-10-30 06:46:52 +01:00 committed by Cheng Zhao
parent 0ab9cc30d2
commit 3d56e13b38
3 changed files with 30 additions and 1 deletions

View file

@ -5,6 +5,17 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
})
const testMap = {
connect () {
let success = false
try {
chrome.runtime.connect(chrome.runtime.id)
chrome.runtime.connect(chrome.runtime.id, { name: 'content-script' })
chrome.runtime.connect({ name: 'content-script' })
success = true
} finally {
console.log(JSON.stringify(success))
}
},
getManifest () {
const manifest = chrome.runtime.getManifest()
console.log(JSON.stringify(manifest))