Skip to content
Snippets Groups Projects
Commit 261013cf authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when session expires main page is reloaded

parent a686ba10
No related branches found
No related tags found
1 merge request!28Resolve "Session expire"
......@@ -76,6 +76,12 @@ ServerConnector.getMaxOverlayColorInt = function() {
ServerConnector.readFile = function(url, description) {
var self = this;
if (self.getSessionData().getToken() === undefined) {
self.getSessionData().setLogin(undefined);
window.location.reload(false);
}
if (description === undefined) {
description = url;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment