Skip to content

Added try/catch to avoid errors when cookies/storage is disabled#63

Closed
mrkoreye wants to merge 1 commit intogsklee:masterfrom
mrkoreye:fix-for-blocked-cookies
Closed

Added try/catch to avoid errors when cookies/storage is disabled#63
mrkoreye wants to merge 1 commit intogsklee:masterfrom
mrkoreye:fix-for-blocked-cookies

Conversation

@mrkoreye
Copy link

@mrkoreye mrkoreye commented Aug 6, 2014

When trying to bootstrap the angular app with cookies/storage turned off, var webStorage = $window[storageType] was throwing an error. This caused the Angular app to fail bootstrap/init. This is similar to pull request 59 (#59), but adds a shim webStorage object. It also adds a check for an error that I got in Firefox where webStorage = $window['sessionStorage'] evaluated, but then calling webStorage.length threw a 'security' error.

Thank you for making ngStorage!

@egilkh
Copy link
Contributor

egilkh commented May 14, 2015

This check is in place now.

@egilkh egilkh closed this May 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants