Update refresh tab after save options (Chrome)

Synch with Chrome-extension code (after earlier added tabs-permission (manifest.json)).
This commit is contained in:
magnolia1234 2020-03-04 18:19:35 +01:00 committed by GitHub
parent cc9b1e4279
commit f969ee3fdc

View File

@ -27,7 +27,14 @@ function save_options() {
});
// Refresh the current tab
browser.tabs.reload({bypassCache: true});
browser.tabs.query({
active: true,
currentWindow: true
}, function (tabs) {
browser.tabs.update(tabs[0].id, {
url: tabs[0].url
});
});
}
// Restores checkbox input states using the preferences stored in browser.storage.