remove useless code
This commit is contained in:
parent
e0b0a53112
commit
be8d249ed7
1 changed files with 1 additions and 2 deletions
|
@ -98,7 +98,6 @@ function kfet_open(init_date, init_status, init_force_close, force_close_url, fo
|
|||
}
|
||||
}
|
||||
// SYNCHRONIZATION
|
||||
websocket_msg_default = {'last_op': 0}
|
||||
|
||||
var websocket_protocol = window.location.protocol == 'https:' ? 'wss' : 'ws';
|
||||
var location_host = window.location.host;
|
||||
|
@ -106,7 +105,7 @@ function kfet_open(init_date, init_status, init_force_close, force_close_url, fo
|
|||
var socket = new ReconnectingWebSocket(websocket_protocol+"://" + location_url + "/ws/k-fet/is_open/");
|
||||
|
||||
socket.onmessage = function(e) {
|
||||
var data = $.extend({}, websocket_msg_default, JSON.parse(e.data));
|
||||
var data = JSON.parse(e.data);
|
||||
|
||||
if (data['door_action']) {
|
||||
console.log("* Message reçu de la part de la porte.");
|
||||
|
|
Loading…
Reference in a new issue