@@ -30,7 +30,7 @@ let wsMsg = "";
30
30
let logOff = false ;
31
31
let pageId = "" ;
32
32
let currentPath = "/" ;
33
- const version = "3.0.0.a5 " ;
33
+ const version = "3.0.0.a6 " ;
34
34
let xmlhttpupload ;
35
35
let prgfiletext ;
36
36
let prgfile ;
@@ -239,11 +239,11 @@ function getPCTime() {
239
239
padNumber ( d . getMonth ( ) + 1 , 2 ) +
240
240
"-" +
241
241
padNumber ( d . getDate ( ) , 2 ) +
242
- "- " +
242
+ "T " +
243
243
padNumber ( d . getHours ( ) , 2 ) +
244
- "- " +
244
+ ": " +
245
245
padNumber ( d . getMinutes ( ) , 2 ) +
246
- "- " +
246
+ ": " +
247
247
padNumber ( d . getSeconds ( ) , 2 )
248
248
) ;
249
249
}
@@ -357,18 +357,18 @@ function processFWJson(text) {
357
357
}
358
358
}
359
359
if ( json . Hostname ) document . title = json . Hostname ;
360
- startSocket ( json . WebSocketIP , json . WebSocketPort , json . WebCommunication , json . WebSocketSubProtocol ) ;
360
+ startSocket ( json . WebSocketIP , json . WebSocketPort , json . WebCommunication ) ;
361
361
SendFileCommand ( "list" , "all" ) ;
362
362
}
363
363
364
- function startSocket ( ip , port , sync , protocol ) {
364
+ function startSocket ( ip , port , sync ) {
365
365
if ( websocketStarted ) {
366
366
wsSource . close ( ) ;
367
367
}
368
368
369
369
wsSource = new WebSocket (
370
370
"ws://" + ip + ":" + port + ( sync == "Asynchronous" ? "/ws" : "" ) ,
371
- [ protocol ]
371
+ [ "webui-v3" ]
372
372
) ;
373
373
wsSource . binaryType = "arraybuffer" ;
374
374
wsSource . onopen = function ( e ) {
@@ -380,7 +380,7 @@ function startSocket(ip, port, sync, protocol) {
380
380
//if it is not a log off
381
381
if ( ! logOff )
382
382
setTimeout ( ( ) => {
383
- startSocket ( ip , port , sync , protocol ) ;
383
+ startSocket ( ip , port , sync ) ;
384
384
} , 3000 ) ;
385
385
} ;
386
386
wsSource . onerror = function ( e ) {
0 commit comments