Browsing all the questions/answers here but can't find a resolution to my problem. The condition ('localStorage' in window)
returns true
but object of localStorage
itself remains undefined
. <!DOCTYPE html>
set properly, can't get it working. I am using IE10. Tried watch it via developer tools, the same result.
Any ideas here?
Edit
function storageAvailable() {
try {
return 'localStorage' in window && window['localStorage'] !== null && window['localStorage'] !== undefined;
} catch (e) {
return false;
}
}
Based on the same issue in IE9 I would like to update the question: is there any workaround? I cannot use even static server on the machine I need to test on.