Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(storage): fixup 75504cb
Browse files Browse the repository at this point in the history
Fix an eventual issue of browser which do not throw an exception.
  • Loading branch information
knalli committed Aug 3, 2014
1 parent 75504cb commit 53a8bad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/service/storage-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ angular.module('pascalprecht.translate')
$window.localStorage.setItem(testKey, 'foo');
$window.localStorage.removeItem(testKey);
hasLocalStorageSupport = true;
} else {
hasLocalStorageSupport = false;
}
} catch (e){
hasLocalStorageSupport = false;
Expand Down

0 comments on commit 53a8bad

Please sign in to comment.