diff options
author | Devaev Maxim <[email protected]> | 2019-11-30 02:25:02 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-11-30 02:25:02 +0300 |
commit | f23d009d0c1228bc901866fe017eb3bec252df1a (patch) | |
tree | 412b2b1db11ce7bddc49df3e62e674d17fead998 /web/share/js/kvm/session.js | |
parent | f6fab6415e86daa4e4372412968d70ca6bdf8620 (diff) |
wol ui
Diffstat (limited to 'web/share/js/kvm/session.js')
-rw-r--r-- | web/share/js/kvm/session.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index 5b7d9dda..cc9af52d 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -30,6 +30,7 @@ import {Hid} from "./hid.js"; import {Atx} from "./atx.js"; import {Msd} from "./msd.js"; import {Streamer} from "./stream.js"; +import {WakeOnLan} from "./wol.js"; export function Session() { @@ -46,6 +47,7 @@ export function Session() { var __atx = new Atx(); var __msd = new Msd(); var __streamer = new Streamer(); + var __wol = new WakeOnLan(); var __init__ = function() { __startSession(); @@ -126,6 +128,8 @@ export function Session() { __msd.setState(event.msg.event_attrs); } else if (event.msg.event === "streamer_state") { __streamer.setState(event.msg.event_attrs); + } else if (event.msg.event === "wol_state") { + __wol.setState(event.msg.event_attrs); } } }; |