mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 18:41:54 +08:00
renamed locations
This commit is contained in:
@@ -32,11 +32,11 @@ body {
|
||||
function onWsMessage(message) {
|
||||
console.log(message.data);
|
||||
if (message.data == "EVENT mjpg_streamer started") {
|
||||
document.getElementById("stream-image").src = "/video/?action=stream&time=" + new Date().getTime();
|
||||
document.getElementById("stream-image").src = "/streamer/?action=stream&time=" + new Date().getTime();
|
||||
}
|
||||
}
|
||||
|
||||
ws = new WebSocket("ws://" + location.host + "/kvm/ws");
|
||||
ws = new WebSocket("ws://" + location.host + "/kvmd/ws");
|
||||
ws.onmessage = (message) => onWsMessage(message);
|
||||
ws.onerror = (error) => console.error(error);
|
||||
ws.onclose = () => console.log("closed");
|
||||
|
||||
Reference in New Issue
Block a user