mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-12 04:31:04 +00:00
fix
This commit is contained in:
parent
963cc63949
commit
31b9e053cd
16
app/index.js
16
app/index.js
|
@ -236,6 +236,20 @@ if (FILE.fileExists("userid.txt")) {
|
||||||
if (typeof(token) !== "undefined") {
|
if (typeof(token) !== "undefined") {
|
||||||
OldBrowser.setContent(FILE.readFile("app\\servers.html", "utf-8"));
|
OldBrowser.setContent(FILE.readFile("app\\servers.html", "utf-8"));
|
||||||
getAssignedServers();
|
getAssignedServers();
|
||||||
|
|
||||||
|
document.getElementById("btn_logout").onclick = function() {
|
||||||
|
if (FILE.fileExists("token.txt")) {
|
||||||
|
token = FILE.deleteFile("token.txt")
|
||||||
|
}
|
||||||
|
|
||||||
|
if (FILE.fileExists("userid.txt")) {
|
||||||
|
userId = FILE.deleteFile("userid.txt");
|
||||||
|
}
|
||||||
|
|
||||||
|
exit(0);
|
||||||
|
};
|
||||||
|
|
||||||
|
document.getElementById("btn_assign").onclick = assign;
|
||||||
} else {
|
} else {
|
||||||
OldBrowser.setContent(FILE.readFile("app\\login.html", "utf-8"));
|
OldBrowser.setContent(FILE.readFile("app\\login.html", "utf-8"));
|
||||||
|
|
||||||
|
@ -264,6 +278,4 @@ if (typeof(token) !== "undefined") {
|
||||||
})
|
})
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
|
|
||||||
document.getElementById("btn_assign").onclick = assign;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -229,7 +229,6 @@ exports.start = function(callback) {
|
||||||
|
|
||||||
// load additional libraries
|
// load additional libraries
|
||||||
if (IEVersion < 10) {
|
if (IEVersion < 10) {
|
||||||
exports.addScript("app/assets/js/PIE-1.0.0.js");
|
|
||||||
exports.addScript("app/assets/js/jquery.html5-placeholder-shim-5a87f05.js");
|
exports.addScript("app/assets/js/jquery.html5-placeholder-shim-5a87f05.js");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNjA1MTUwMTg2LCJ0dGwiOjIwLCJ0eXBlIjoiYXV0aCIsImtleSI6Ijg1N2NlZDg1LTMzOWEtNDViNS04YTQ5LTJjOGM0YmE4ZDVmNCIsInByb2plY3QiOiJuZXRzb2xpZCJ9.w8lGq8Zo29XoUYII2D8hnI5kSGLcGEx4hiMHgIfVUlY
|
|
|
@ -1 +0,0 @@
|
||||||
1
|
|
Loading…
Reference in New Issue
Block a user