From 26325d331b442d456010b22bc3e625d45e6532dd Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sat, 18 Apr 2020 10:59:13 +0100 Subject: [PATCH] [refactor] improve page unlock when opening and closing modals quickly --- package-lock.json | 2 +- package.json | 2 +- src/js/keyboard.js | 3 +++ src/js/version.js | 2 +- src/manifest.json | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4f0d11b1..a0717c15 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.9.0", + "version": "5.10.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a8c30695..827ebb04 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.9.0", + "version": "5.10.0", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "main": "index.js", "scripts": { diff --git a/src/js/keyboard.js b/src/js/keyboard.js index f57bc546..e064d894 100644 --- a/src/js/keyboard.js +++ b/src/js/keyboard.js @@ -41,6 +41,9 @@ var keyboard = (function() { link.edit.mode.close(); data.save(); }; + if (state.get.current().pagelock) { + pagelock.unlock(); + }; data.save(); }; }, false); diff --git a/src/js/version.js b/src/js/version.js index 92a3b9bd..bce7efb3 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "5.9.0"; + var current = "5.10.0"; var name = "Zonked Tarsier"; diff --git a/src/manifest.json b/src/manifest.json index 8e97fb01..1ccebd16 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "nightTab", "short_name": "nightTab", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", - "version": "5.9.0", + "version": "5.10.0", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"