This commit is contained in:
Namhyeon Go 2020-11-12 13:54:55 +09:00
parent 963cc63949
commit 31b9e053cd
4 changed files with 14 additions and 5 deletions

View File

@ -236,6 +236,20 @@ if (FILE.fileExists("userid.txt")) {
if (typeof(token) !== "undefined") {
OldBrowser.setContent(FILE.readFile("app\\servers.html", "utf-8"));
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 {
OldBrowser.setContent(FILE.readFile("app\\login.html", "utf-8"));
@ -264,6 +278,4 @@ if (typeof(token) !== "undefined") {
})
;
};
document.getElementById("btn_assign").onclick = assign;
}

View File

@ -229,7 +229,6 @@ exports.start = function(callback) {
// load additional libraries
if (IEVersion < 10) {
exports.addScript("app/assets/js/PIE-1.0.0.js");
exports.addScript("app/assets/js/jquery.html5-placeholder-shim-5a87f05.js");
}
};

View File

@ -1 +0,0 @@
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNjA1MTUwMTg2LCJ0dGwiOjIwLCJ0eXBlIjoiYXV0aCIsImtleSI6Ijg1N2NlZDg1LTMzOWEtNDViNS04YTQ5LTJjOGM0YmE4ZDVmNCIsInByb2plY3QiOiJuZXRzb2xpZCJ9.w8lGq8Zo29XoUYII2D8hnI5kSGLcGEx4hiMHgIfVUlY

View File

@ -1 +0,0 @@
1