Fix unsupported pages if browser not support localStorage
This commit is contained in:
parent
f1fe437f7b
commit
95bfd555f2
2 changed files with 6 additions and 5 deletions
|
|
@ -7,6 +7,11 @@ if (window && window.navigator) {
|
|||
var isaosp = (rxaosp && rxaosp[1] < 537);
|
||||
if (!window.cordova && isaosp)
|
||||
unsupported = true;
|
||||
if (!Modernizr.localstorage)
|
||||
unsupported = true;
|
||||
if (unsupported) {
|
||||
window.location = '#/unsupported';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -463,11 +468,6 @@ angular
|
|||
$rootScope.$emit('Animation/SwipeLeft');
|
||||
}
|
||||
|
||||
if (unsupported) {
|
||||
$state.transitionTo('unsupported');
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
if (!profileService.profile && toState.needProfile) {
|
||||
|
||||
// Try to open local profile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue