Adjust maxTimeDiff to 30s, and change the time warning message.
This commit is contained in:
@@ -38,7 +38,7 @@ import * as sshctl from "./control/ssh.js";
|
|||||||
import * as xhr from "./xhr.js";
|
import * as xhr from "./xhr.js";
|
||||||
import * as cipher from "./crypto.js";
|
import * as cipher from "./crypto.js";
|
||||||
|
|
||||||
const maxTimeDiff = 20000;
|
const maxTimeDiff = 30000;
|
||||||
|
|
||||||
const mainTemplate = `
|
const mainTemplate = `
|
||||||
<home
|
<home
|
||||||
@@ -157,8 +157,9 @@ function startApp(rootEl) {
|
|||||||
this.loadErr =
|
this.loadErr =
|
||||||
"The time difference between this client " +
|
"The time difference between this client " +
|
||||||
"and the backend server is beyond operational limit.\r\n\r\n" +
|
"and the backend server is beyond operational limit.\r\n\r\n" +
|
||||||
"Please adjust your time so both client and server are " +
|
"Please try reload the page, and if the problem persisted, " +
|
||||||
"running at same date time";
|
"consider to adjust your local time so both the client and " +
|
||||||
|
"the server are running at same date time";
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user