design fix, refactoring

This commit is contained in:
Devaev Maxim
2018-11-22 06:22:48 +03:00
parent a4357162f4
commit d3073b9d7e
9 changed files with 47 additions and 27 deletions

View File

@@ -141,13 +141,14 @@ function Hid() {
clipboard_codes.push(codes);
}
});
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 " + (__codes_delay * codes_count * 2 / 1000) + " seconds.<br>"
+ "<br>Are you sure you want to continue?<br>"
);
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) {