trusktr
trusktr

Reputation: 45504

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?

Upvotes: 1

Views: 523

Answers (1)

Derek 朕會功夫
Derek 朕會功夫

Reputation: 94339

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.

Upvotes: 1

Related Questions