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

Improved secure mode viewing

Co-Authored-By: McMatts <matt@documize.com>
This commit is contained in:
Harvey Kandola 2018-10-05 17:42:06 +01:00
parent ab2cbd4ff7
commit df0e3c108e
3 changed files with 5 additions and 10 deletions

View file

@ -73,6 +73,8 @@ export default Service.extend({
return resolve(this);
}
requestedRoute = requestedRoute.toLowerCase().trim();
return this.get('ajax').request('public/meta').then((response) => {
this.setProperties(response);
this.set('version', 'v' + this.get('version'));
@ -86,6 +88,7 @@ export default Service.extend({
});
this.get('localStorage').clearAll();
return resolve(this);
} else if (is.not.include(requestedUrl, '/auth/')) {
this.get('localStorage').storeSessionItem('entryUrl', requestedUrl);
}