throw access denied exception on IE10/Windows8 when IE10 under Protected Mode.
jswxwxf opened this issue · comments
Will throw access denied exception when IE10 under Protected Mode on the code
if (!window.localStorage) {
One suggest solution is that we can wrap a try catch block around the issue code. :)
try {
if (!window.localStorage) {
...
if (!window.sessionStorage) {
...
} catch (e) {}
Thanks for reporting this!
Your suggested fix looks good, the in-module feature tests would still work as expected, and the module would fall back on ram storage if needed.
I'll include the try/catch-block asap, thanks.
You're welcome. :)
Because I'm using bower to download your angular webstorage, so I'm hoping that you can fix it here and I don't need maintain my modified version.