I\'m trying to make that if you press a button in the popup window in my chrome extension, it will reload the extension. Is that possible?
Just found this method, which does exactly what I want:
chrome.runtime.reload();
Add this code to manifest.json:
"background": {
"persistent": false,
"scripts": [ "background.js" ]
}
Add this code to background.js:
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.runtime.reload();
});