mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 18:11:54 +08:00
refactoring
This commit is contained in:
@@ -196,9 +196,7 @@ export function Hid() {
|
||||
var __clickPasteAsKeysButton = function() {
|
||||
let text = $("hid-pak-text").value.replace(/[^\x00-\x7F]/g, ""); // eslint-disable-line no-control-regex
|
||||
if (text) {
|
||||
let confirm_msg = text.length !== 1 ?
|
||||
`You're going to paste ${text.length} characters.<br>` :
|
||||
`You're going to paste ${text.length} character.<br>`;
|
||||
let confirm_msg = `You're going to paste ${text.length} character${text.length ? "s" : ""}.<br>`;
|
||||
confirm_msg += "Are you sure you want to continue?";
|
||||
|
||||
wm.confirm(confirm_msg).then(function(ok) {
|
||||
|
||||
Reference in New Issue
Block a user