web: Enabled secure paste text for Firefox

This commit is contained in:
Maxim Devaev 2024-12-08 20:17:26 +02:00
parent 8cca5a8cc7
commit 2649a2fa01
3 changed files with 2 additions and 8 deletions

View File

@ -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">

View File

@ -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

View File

@ -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);
});