diff options
-rw-r--r-- | web/kvm/index.html | 2 | ||||
-rw-r--r-- | web/kvm/navbar-text.pug | 2 | ||||
-rw-r--r-- | web/share/js/kvm/paste.js | 6 |
3 files changed, 2 insertions, 8 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index d698cea9..5e18ac31 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -736,7 +736,7 @@ </div> </td> </tr> - <tr class="feature-disabled" id="hid-pak-secure"> + <tr> <td>Hide input text:</td> <td align="right"> <div class="switch-box"> diff --git a/web/kvm/navbar-text.pug b/web/kvm/navbar-text.pug index 1c68da40..4b344964 100644 --- a/web/kvm/navbar-text.pug +++ b/web/kvm/navbar-text.pug @@ -19,7 +19,7 @@ li(id="text-dropdown" class="right") table(class="kv") tr +menu_switch_notable("hid-pak-ask-switch", "Ask paste confirmation", true, true) - tr(id="hid-pak-secure" class="feature-disabled") + tr +menu_switch_notable("hid-pak-secure-switch", "Hide input text", true, false) div(id="stream-ocr" class="feature-disabled") hr diff --git a/web/share/js/kvm/paste.js b/web/share/js/kvm/paste.js index 8b770122..3fe1d62c 100644 --- a/web/share/js/kvm/paste.js +++ b/web/share/js/kvm/paste.js @@ -37,12 +37,6 @@ export function Paste(__recorder) { tools.storage.bindSimpleSwitch($("hid-pak-secure-switch"), "hid.pak.secure", false, function(value) { $("hid-pak-text").style.setProperty("-webkit-text-security", (value ? "disc" : "none")); }); - tools.feature.setEnabled($("hid-pak-secure"), ( - tools.browser.is_chrome - || tools.browser.is_safari - || tools.browser.is_opera - )); - $("hid-pak-keymap-selector").addEventListener("change", function() { tools.storage.set("hid.pak.keymap", $("hid-pak-keymap-selector").value); }); |