mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-11 17:34:58 +00:00
fix
This commit is contained in:
parent
4ec0d79860
commit
963cc63949
|
@ -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();
|
||||
}
|
||||
})
|
||||
;
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user