mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Replaced underscore.js & is.js with lodash.js
This commit is contained in:
parent
df8e843bf5
commit
566807bc14
93 changed files with 17379 additions and 2056 deletions
|
@ -53,7 +53,7 @@ export default Service.extend({
|
|||
this.set('authProvider', constants.AuthProvider.Documize);
|
||||
|
||||
let dbhash;
|
||||
if (is.not.null(document.head.querySelector("[property=dbhash]"))) {
|
||||
if (!_.isNull(document.head.querySelector("[property=dbhash]"))) {
|
||||
dbhash = document.head.querySelector("[property=dbhash]").content;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ export default Service.extend({
|
|||
|
||||
this.get('localStorage').clearAll();
|
||||
return resolve(this);
|
||||
} else if (is.not.include(requestedUrl, '/auth/')) {
|
||||
} else if (!_.includes(requestedUrl, '/auth/')) {
|
||||
this.get('localStorage').storeSessionItem('entryUrl', requestedUrl);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue