1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Cross-browser support for JS strings startWith

This commit is contained in:
sauls8t 2018-06-29 15:53:38 +01:00
parent d5be8ec843
commit a0f6626367
3 changed files with 5 additions and 6 deletions

View file

@ -39,7 +39,7 @@ export default AjaxService.extend({
let appVersion = headers['x-documize-version'];
// when unauthorized on local API AJAX calls, redirect to app root
if (status === 401 && is.not.undefined(appVersion) && is.not.includes(window.location.href, '/auth')) {
if (status === 401 && is.not.undefined(appVersion) && is.not.include(window.location.href, '/auth')) {
this.get('localStorage').clearAll();
window.location.href = 'auth/login';
}