diff options
author | Maxim Devaev <[email protected]> | 2024-09-23 02:32:38 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-09-23 02:32:38 +0300 |
commit | 8209ee2eb0bd411c74d7d7dbf7b1b79e46dd79c0 (patch) | |
tree | 44fbe8a26d88840b87d6f4ecfcb3d54544f31952 /web/share/js/kvm/recorder.js | |
parent | 5ed368769c889628ebae896556e5c6401cbafdaf (diff) |
improved wm dialogs
Diffstat (limited to 'web/share/js/kvm/recorder.js')
-rw-r--r-- | web/share/js/kvm/recorder.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/share/js/kvm/recorder.js b/web/share/js/kvm/recorder.js index 7ba0b3cb..f32b5a2e 100644 --- a/web/share/js/kvm/recorder.js +++ b/web/share/js/kvm/recorder.js @@ -215,7 +215,7 @@ export function Recorder() { __events = events; __events_time = events_time; } catch (ex) { - wm.error(`Invalid script: ${ex}`); + wm.error("Invalid script", `${ex}`); } el_input.value = ""; @@ -285,7 +285,7 @@ export function Recorder() { wm.error("Too many text for paste!"); __stopProcess(); } else if (http.status !== 200) { - wm.error("HID paste error:<br>", http.responseText); + wm.error("HID paste error", http.responseText); __stopProcess(); } else if (http.status === 200) { __play_timer = setTimeout(() => __runEvents(index + 1, time), 0); @@ -296,7 +296,7 @@ export function Recorder() { } else if (event.event_type === "atx_button") { tools.httpPost("/api/atx/click", {"button": event.event.button}, function(http) { if (http.status !== 200) { - wm.error("ATX error:<br>", http.responseText); + wm.error("ATX error", http.responseText); __stopProcess(); } else if (http.status === 200) { __play_timer = setTimeout(() => __runEvents(index + 1, time), 0); @@ -315,7 +315,7 @@ export function Recorder() { } tools.httpPost(path, params, function(http) { if (http.status !== 200) { - wm.error("GPIO error:<br>", http.responseText); + wm.error("GPIO error", http.responseText); __stopProcess(); } else if (http.status === 200) { __play_timer = setTimeout(() => __runEvents(index + 1, time), 0); |