From 73944b22ad22e37b3f0bc20ba7cbd43771e95ecf Mon Sep 17 00:00:00 2001 From: Corentin Date: Tue, 7 May 2024 10:30:15 +0900 Subject: [PATCH] Fix edit * Bump version to 1.5.1 --- manifest.json | 2 +- popup.js | 4 +--- store.js | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index 464160e..4f78519 100644 --- a/manifest.json +++ b/manifest.json @@ -24,5 +24,5 @@ "storage", "clipboardWrite" ], - "version": "1.5.0" + "version": "1.5.1" } \ No newline at end of file diff --git a/popup.js b/popup.js index 11fce02..baf23ea 100644 --- a/popup.js +++ b/popup.js @@ -61,9 +61,7 @@ async function init() stop(); }); export_elt.addEventListener('click', () => { store.export(); }); - import_elt.addEventListener('click', () => { - browser.tabs.create({ url: "options.html" }); - }); + import_elt.addEventListener('click', () => { browser.tabs.create({ url: "options.html" }); }); document.querySelector('#notification img').addEventListener( 'click', notification.close_notification.bind(notification)); diff --git a/store.js b/store.js index cb97eb6..ac73f08 100644 --- a/store.js +++ b/store.js @@ -422,7 +422,7 @@ class Entry refreshTimer(animation_delay) { - this.timer_count = 1- this.timer_count; + this.timer_count = 1 - this.timer_count; this.elements.timer_circle.style.animationDelay = `-${animation_delay}s`; this.elements.timer_circle.style.animationName = `timer${this.timer_count}`; } @@ -469,7 +469,7 @@ class Entry this.refresh(counter); this.refreshTimer((count_time - counter) * 30); }); - this.save(); + this.store.save(); this.elements.main.removeChild(secret_container_elt); this.elements.action.removeChild(done_elt); this.elements.action.removeChild(close_elt);