diff options
author | Devaev Maxim <[email protected]> | 2018-11-24 06:30:08 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-11-24 06:30:08 +0300 |
commit | c168e738057cae115be552e8cf22f500fb5ed0f8 (patch) | |
tree | f4fbb3180d77069d5ff688bf6403ea5535e007b9 /web/js/kvm/stream.js | |
parent | d060125cd3a146b9817aec4cbc8705da91cf5139 (diff) |
removed loadInitialState()
Diffstat (limited to 'web/js/kvm/stream.js')
-rw-r--r-- | web/js/kvm/stream.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/web/js/kvm/stream.js b/web/js/kvm/stream.js index d543701f..029eee48 100644 --- a/web/js/kvm/stream.js +++ b/web/js/kvm/stream.js @@ -38,19 +38,6 @@ function Streamer() { /********************************************************************************/ - self.loadInitialState = function() { - var http = tools.makeRequest("GET", "/kvmd/streamer", function() { - if (http.readyState === 4) { - if (http.status === 200) { - self.setState(JSON.parse(http.responseText).result); - } else { - self.clearState(); - setTimeout(self.loadInitialState, 1000); - } - } - }); - }; - self.setState = function(state) { if (state.state) { var source = state.state.source; |