Chrome: Message Content-script On Runtime.oninstalled
I'm the maker of an addon called BeautifyTumblr which changes the apperance of Tumblr. I wish for my Chrome extension to automatically detect when it has been updated and display c
Solution 1:
I am also seeing the same thing. I am not a 100% sure but I think this happens because chrome shuts off connection between background page and "old" content scripts the moment the extension is updated. There's more info here in this bug : https://code.google.com/p/chromium/issues/detail?id=168263
Solution 2:
simple, use the following code in background,
chrome.runtime.onInstalled.addListener(function(details){
if(details.reason == "install"){
chrome.tabs.create({ url: chrome.extension.getURL('welcome.html')});
}
});
Post a Comment for "Chrome: Message Content-script On Runtime.oninstalled"