diff options
Diffstat (limited to 'web/js/kvm/hid.js')
-rw-r--r-- | web/js/kvm/hid.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/web/js/kvm/hid.js b/web/js/kvm/hid.js index 5b13480f..69b34144 100644 --- a/web/js/kvm/hid.js +++ b/web/js/kvm/hid.js @@ -141,13 +141,14 @@ function Hid() { clipboard_codes.push(codes); } }); - - var confirm_msg = ( - "You are going to automatically type " + codes_count - + " characters from the system clipboard." - + " It will take " + (__codes_delay * codes_count * 2 / 1000) + " seconds.<br>" - + "<br>Are you sure you want to continue?<br>" - ); + var time = __codes_delay * codes_count * 2 / 1000; + + var confirm_msg = ` + You are going to automatically type ${codes_count} characters from the system clipboard. + It will take ${time} seconds.<br> + <br> + Are you sure you want to continue? + `; ui.confirm(confirm_msg).then(function(ok) { if (ok) { |