diff options
author | Maxim Devaev <[email protected]> | 2024-09-22 22:14:36 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-09-23 02:32:23 +0300 |
commit | 5ed368769c889628ebae896556e5c6401cbafdaf (patch) | |
tree | ecaa45df14240683a14308a158761b5ac3cc3139 /web/share/js/kvm/stream.js | |
parent | 1217144ecd476e28cfe43d7454a5224aa7fe7b7a (diff) |
refactoring
Diffstat (limited to 'web/share/js/kvm/stream.js')
-rw-r--r-- | web/share/js/kvm/stream.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index b811a657..1b93e7c4 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -295,7 +295,7 @@ export function Streamer() { wm.confirm("Are you sure you want to reset stream?").then(function (ok) { if (ok) { __resetStream(); - tools.httpPost("/api/streamer/reset", function(http) { + tools.httpPost("/api/streamer/reset", null, function(http) { if (http.status !== 200) { wm.error("Can't reset stream:<br>", http.responseText); } @@ -305,7 +305,7 @@ export function Streamer() { }; var __sendParam = function(name, value) { - tools.httpPost(`/api/streamer/set_params?${name}=${value}`, function(http) { + tools.httpPost("/api/streamer/set_params", {[name]: value}, function(http) { if (http.status !== 200) { wm.error("Can't configure stream:<br>", http.responseText); } |