1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

fixed bug with app boot

This commit is contained in:
Harvey Kandola 2017-12-19 16:52:40 +00:00
parent 4de19dcbec
commit ca783dd323
9 changed files with 2673 additions and 1141 deletions

View file

@ -62,22 +62,18 @@ export default Service.extend({
return resolve(this);
}
if (requestedRoute === 'secure') {
this.setProperties({
title: htmlSafe("Secure document viewing"),
allowAnonymousAccess: true,
secureMode: true
});
this.get('localStorage').clearAll();
return resolve(this);
}
return this.get('ajax').request('public/meta').then((response) => {
this.setProperties(response);
if (is.not.include(requestedUrl, '/auth/')) {
if (requestedRoute === 'secure') {
this.setProperties({
title: htmlSafe("Secure document viewing"),
allowAnonymousAccess: true,
secureMode: true
});
this.get('localStorage').clearAll();
} else if (is.not.include(requestedUrl, '/auth/')) {
this.get('localStorage').storeSessionItem('entryUrl', requestedUrl);
}