mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
web: Enabled secure paste text for Firefox
This commit is contained in:
parent
8cca5a8cc7
commit
2649a2fa01
@ -736,7 +736,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="feature-disabled" id="hid-pak-secure">
|
<tr>
|
||||||
<td>Hide input text:</td>
|
<td>Hide input text:</td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<div class="switch-box">
|
<div class="switch-box">
|
||||||
|
|||||||
@ -19,7 +19,7 @@ li(id="text-dropdown" class="right")
|
|||||||
table(class="kv")
|
table(class="kv")
|
||||||
tr
|
tr
|
||||||
+menu_switch_notable("hid-pak-ask-switch", "Ask paste confirmation", true, true)
|
+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)
|
+menu_switch_notable("hid-pak-secure-switch", "Hide input text", true, false)
|
||||||
div(id="stream-ocr" class="feature-disabled")
|
div(id="stream-ocr" class="feature-disabled")
|
||||||
hr
|
hr
|
||||||
|
|||||||
@ -37,12 +37,6 @@ export function Paste(__recorder) {
|
|||||||
tools.storage.bindSimpleSwitch($("hid-pak-secure-switch"), "hid.pak.secure", false, function(value) {
|
tools.storage.bindSimpleSwitch($("hid-pak-secure-switch"), "hid.pak.secure", false, function(value) {
|
||||||
$("hid-pak-text").style.setProperty("-webkit-text-security", (value ? "disc" : "none"));
|
$("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() {
|
$("hid-pak-keymap-selector").addEventListener("change", function() {
|
||||||
tools.storage.set("hid.pak.keymap", $("hid-pak-keymap-selector").value);
|
tools.storage.set("hid.pak.keymap", $("hid-pak-keymap-selector").value);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user