简体   繁体   中英

If a Chrome extension crashes, how do I make another extension reload the crashed extension?

I can't seem to find a way to do this. Any idea how?

You can enable or disable an extension, but it is not possible to know when it crashes.

var id = "afhufhsauofhgshoughueghoegr",
    enable = true;
chrome.management.setEnabled(id, enable, function(){
    alert("Enabled.")
})

with the permission management .

"permissions": [
  "management"
]

You might try, but I don't know if this will also work for crashing:

chrome.management.onDisabled.addListener

For more information, see the docs .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM