-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
On IE, localStorage does not work with the "file:///" protocol.
If you want to polyfill it, you must avoid direct assignment of window.localStorage.
Instead, you must use "Object.defineProperty()", like this:
window.localStorage = 'hello';
alert(window.localStorage); // undefined
Object.defineProperty(window, 'localStorage', {value:'hello'});
alert(window.localStorage); // helloAs a side note, I think only the Flash technique works in IE Offline
Metadata
Metadata
Assignees
Labels
No labels