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.