mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00: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
@ -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 New Issue
Block a user