diff options
author | Maxim Devaev <[email protected]> | 2021-08-12 10:21:35 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-08-12 10:21:35 +0300 |
commit | d7f65ad78854f97f439e1d79f3f25a9706d0f15f (patch) | |
tree | 309f529a68de28907d6c28f2cf1efa2c89e55b3c /web/share/js/kvm/hid.js | |
parent | 68897c94ac21b0fc5b1e30b647549c9b46aa387d (diff) |
refactoring
Diffstat (limited to 'web/share/js/kvm/hid.js')
-rw-r--r-- | web/share/js/kvm/hid.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js index 374148c4..6dfad27b 100644 --- a/web/share/js/kvm/hid.js +++ b/web/share/js/kvm/hid.js @@ -74,9 +74,9 @@ export function Hid(__getResolution) { window.addEventListener("pagehide", __releaseAll); window.addEventListener("blur", __releaseAll); - $("hid-pak-ask-switch").checked = parseInt(tools.storage.get("hid.pak.ask", "1")); + $("hid-pak-ask-switch").checked = tools.storage.getBool("hid.pak.ask", true); tools.el.setOnClick($("hid-pak-ask-switch"), function() { - tools.storage.set("hid.pak.ask", ($("hid-pak-ask-switch").checked ? 1 : 0)); + tools.storage.setBool("hid.pak.ask", $("hid-pak-ask-switch").checked); }, false); $("hid-pak-keymap-selector").addEventListener("change", function() { |