mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 12:27:48 +01:00
Update refresh tab after save options (Chrome)
Synch with Chrome-extension code (after earlier added tabs-permission (manifest.json)).
This commit is contained in:
parent
cc9b1e4279
commit
f969ee3fdc
1 changed files with 8 additions and 1 deletions
|
@ -27,7 +27,14 @@ function save_options() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Refresh the current tab
|
// 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.
|
// Restores checkbox input states using the preferences stored in browser.storage.
|
||||||
|
|
Loading…
Reference in a new issue