Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | false |
window.sessionStorage | false |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? | |
---|---|---|
window.localStorage | The Property does not exist | |
window.sessionStorage | The Property does not exist |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | false |
window.sessionStorage | false |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
Storage Method | Hookable? |
---|---|
window.localStorage | true |
window.sessionStorage | true |
function test(data){
// We need to separate properties and access one by one.
try{
console.log(data);
var prop = Object.getOwnPropertyDescriptor(window, data);
if(typeof prop != 'undefined'){
if(prop.configurable === true){
addError('window.'+ data, prop.configurable);
} else {
addSuccess('window.'+ data, prop.configurable);
}
} else {
addInfo('window.'+ data, "The Property does not exist", '');
}
}
catch(err){
addInfo('window.'+ data, 'Error Occured. Probably not configurable.');
}
}
var data = ['localStorage', 'sessionStorage'];