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:
parent
ab2cbd4ff7
commit
df0e3c108e
3 changed files with 5 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue