This commit is contained in:
Namhyeon Go 2020-11-12 13:49:25 +09:00
parent 4ec0d79860
commit 963cc63949
2 changed files with 9 additions and 2 deletions

View File

@ -110,6 +110,7 @@ var getLocalApplications = function() {
if (applicationId) {
HTTP.create()
.setContentType("application/json-patch+json")
.setBearerAuth(token)
.setRequestBody(JSON.stringify(data))
.patch(apiUrl + "/netsolid/items/applications/" + applicationId, onSuccess)
;
@ -258,8 +259,7 @@ if (typeof(token) !== "undefined") {
console.log("ok");
FILE.writeFile("token.txt", res.data.token, "utf-8");
FILE.writeFile("userid.txt", res.data.user.id, "utf-8");
window.location.reload();
OldBrowser.reload();
}
})
;

View File

@ -233,3 +233,10 @@ exports.start = function(callback) {
exports.addScript("app/assets/js/jquery.html5-placeholder-shim-5a87f05.js");
}
};
////////////////////////////////////////////////////////////////////////
// exports.reload()
////////////////////////////////////////////////////////////////////////
exports.reload = function() {
window.location.reload();
};