Shorten localStorage check.

This commit is contained in:
Don McCurdy 2018-04-28 14:08:47 -07:00
parent 194983fa7d
commit 4a08249e30
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
.DS_Store
.sass-cache
.idea/
node_modules/
node_modules/
tmp/

View File

@ -41,7 +41,7 @@ const DEFAULT_DEFAULT_PRESET_NAME = 'Default';
const SUPPORTS_LOCAL_STORAGE = (function() {
try {
return 'localStorage' in window && window.localStorage !== null && window.localStorage !== undefined;
return !!window.localStorage;
} catch (e) {
return false;
}