11 lines
173 B
JavaScript
11 lines
173 B
JavaScript
function get_storage() {
|
|
var st = null;
|
|
if (window.localStorage) {
|
|
st = window.localStorage;
|
|
} else if (localStorage) {
|
|
st = localStorage;
|
|
}
|
|
return st;
|
|
}
|
|
|