Skip to content

Commit

Permalink
build master
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinCK committed Mar 17, 2022
1 parent 2172fb9 commit 86ac7e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
12 changes: 10 additions & 2 deletions dist/vue-ls.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,19 @@
switch (_options.storage) {
// eslint-disable-line
case 'local':
store = 'localStorage' in _global ? _global.localStorage : null;
try {
store = 'localStorage' in _global ? _global.localStorage : null;
} catch (e) {// In some situations the browser will throw a security exception when attempting to access
}

break;

case 'session':
store = 'sessionStorage' in _global ? _global.sessionStorage : null;
try {
store = 'sessionStorage' in _global ? _global.sessionStorage : null;
} catch (e) {// In some situations the browser will throw a security exception when attempting to access
}

break;

case 'memory':
Expand Down
2 changes: 1 addition & 1 deletion dist/vue-ls.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const VueStorage = {
: null
;
} catch (e) {
// In some situations the browser will throw a security exception when attempting to access
// In some situations the browser will
// throw a security exception when attempting to access
}
break;

Expand All @@ -45,7 +46,8 @@ const VueStorage = {
: null
;
} catch (e) {
// In some situations the browser will throw a security exception when attempting to access
// In some situations the browser will
// throw a security exception when attempting to access
}
break;
case 'memory':
Expand Down

0 comments on commit 86ac7e6

Please sign in to comment.