summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-12-08 20:17:26 +0200
committerMaxim Devaev <[email protected]>2024-12-11 17:56:54 +0200
commit2649a2fa01a45ba3766cced3b244a8376df5091a (patch)
tree9e786d18b1ee95acbef4329b61edc5681597e88a /web
parent8cca5a8cc7843355f933946d9b73f97007a5b1c4 (diff)
web: Enabled secure paste text for Firefox
Diffstat (limited to 'web')
-rw-r--r--web/kvm/index.html2
-rw-r--r--web/kvm/navbar-text.pug2
-rw-r--r--web/share/js/kvm/paste.js6
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);
});