Update pywb Toolbar Toggler to 1.0.1
- Fix saving toolbar unhidden state
This commit is contained in:
parent
db9b769f8d
commit
f74f0b59b7
|
@ -4,7 +4,7 @@
|
|||
// @grant GM.getValue
|
||||
// @grant GM.setValue
|
||||
// @grant GM_addValueChangeListener
|
||||
// @version 1.0.0
|
||||
// @version 1.0.1
|
||||
// @author blankie
|
||||
// @description Adds the option to toggle the pywb toolbar
|
||||
// @inject-into content
|
||||
|
@ -53,8 +53,8 @@ function openToolbar(save) {
|
|||
document.querySelector("#open-toolbar").remove();
|
||||
|
||||
if (save) {
|
||||
GM.setValue(window.origin, true).catch(function(error) {
|
||||
console.error(`Failed to set ${window.origin} to true: ${error}`);
|
||||
GM.setValue(window.origin, false).catch(function(error) {
|
||||
console.error(`Failed to set ${window.origin} to false: ${error}`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue