diff --git a/scripts/hv-unified.user.js b/scripts/hv-unified.user.js index 8c42c40..026db78 100644 --- a/scripts/hv-unified.user.js +++ b/scripts/hv-unified.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.16.2 +// @version 0.16.3 // @description HV Unified — Bridge & Strategy/Gear Advisor for HentaiVerse (complements Monsterbation & HVUtils) // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* @@ -18,7 +18,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.16.2'; +const VERSION = '0.16.3'; const CFG = { // — Battle strategy advisory @@ -1677,8 +1677,7 @@ function setupKeybindings() { const tag = (document.activeElement || {}).tagName; if (tag === 'INPUT' || tag === 'TEXTAREA') return; e.preventDefault(); - STATE.settingsVisible = !STATE.settingsVisible; - toggleSettings(); + toggleSettings(); // toggleSettings owns the settingsVisible flag } }); diff --git a/scripts/latest.user.js b/scripts/latest.user.js index 8c42c40..026db78 100644 --- a/scripts/latest.user.js +++ b/scripts/latest.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.16.2 +// @version 0.16.3 // @description HV Unified — Bridge & Strategy/Gear Advisor for HentaiVerse (complements Monsterbation & HVUtils) // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* @@ -18,7 +18,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.16.2'; +const VERSION = '0.16.3'; const CFG = { // — Battle strategy advisory @@ -1677,8 +1677,7 @@ function setupKeybindings() { const tag = (document.activeElement || {}).tagName; if (tag === 'INPUT' || tag === 'TEXTAREA') return; e.preventDefault(); - STATE.settingsVisible = !STATE.settingsVisible; - toggleSettings(); + toggleSettings(); // toggleSettings owns the settingsVisible flag } }); diff --git a/src/config.js b/src/config.js index ce3d02b..912616a 100644 --- a/src/config.js +++ b/src/config.js @@ -2,7 +2,7 @@ // CONFIG — default settings // ═══════════════════════════════════════════════════════════════════════ -const VERSION = '0.16.2'; +const VERSION = '0.16.3'; const CFG = { // — Battle strategy advisory diff --git a/src/header.user.js b/src/header.user.js index c695cd3..02c3d8b 100644 --- a/src/header.user.js +++ b/src/header.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name HV Unified // @namespace hvunified -// @version 0.16.2 +// @version 0.16.3 // @description HV Unified — Bridge & Strategy/Gear Advisor for HentaiVerse (complements Monsterbation & HVUtils) // @author GaboGG + Hermes // @match *://*.hentaiverse.org/* diff --git a/src/keybindings.js b/src/keybindings.js index 15c26cf..aec4739 100644 --- a/src/keybindings.js +++ b/src/keybindings.js @@ -16,8 +16,7 @@ function setupKeybindings() { const tag = (document.activeElement || {}).tagName; if (tag === 'INPUT' || tag === 'TEXTAREA') return; e.preventDefault(); - STATE.settingsVisible = !STATE.settingsVisible; - toggleSettings(); + toggleSettings(); // toggleSettings owns the settingsVisible flag } });