Update pywb Toolbar Toggler to 1.0.1

- Fix saving toolbar unhidden state
This commit is contained in:
blankie 2024-01-23 21:08:31 +11:00
parent db9b769f8d
commit f74f0b59b7
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 3 additions and 3 deletions

View File

@ -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}`);
});
}
}