diff --git a/ngStorage.js b/ngStorage.js index 1d45dd0..51e9bbf 100644 --- a/ngStorage.js +++ b/ngStorage.js @@ -51,6 +51,10 @@ ){ function isStorageSupported(storageType) { + // Some installations of IE, for an unknown reason, throw "SCRIPT5: Error: Access is denied" + // when accessing window.localStorage. This happens before you try to do anything with it. Catch + // that error and allow execution to continue. + // fix 'SecurityError: DOM Exception 18' exception in Desktop Safari, Mobile Safari // when "Block cookies": "Always block" is turned on var supported;