summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/stream.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-07-13 06:38:55 +0300
committerDevaev Maxim <[email protected]>2019-07-13 06:38:55 +0300
commit98468bfa3069e76862be8e0a19bbe8e3fc6748fa (patch)
tree8a2cf0083532b2d7058b194410bd32386a7f07d3 /web/share/js/kvm/stream.js
parentad97aecaf4d043c59d018310b4d8f4852d30b6e0 (diff)
using js modules
Diffstat (limited to 'web/share/js/kvm/stream.js')
-rw-r--r--web/share/js/kvm/stream.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js
index a73d0d2d..8a664454 100644
--- a/web/share/js/kvm/stream.js
+++ b/web/share/js/kvm/stream.js
@@ -20,7 +20,11 @@
*****************************************************************************/
-function Streamer() {
+import {tools, $} from "../tools.js";
+import {wm} from "../wm.js";
+
+
+export function Streamer() {
var self = this;
/************************************************************************/
@@ -103,7 +107,7 @@ function Streamer() {
__client_id = stream_client.slice(stream_client.indexOf("/") + 1);
}
- if (stream.clients_stat.hasOwnProperty(__client_id)) {
+ if (Object.prototype.hasOwnProperty.call(stream.clients_stat, __client_id)) {
__client_fps = stream.clients_stat[__client_id].fps;
} else {
__clearState();