10 lines
162 B
JavaScript
10 lines
162 B
JavaScript
const store = {};
|
|
window.localStorage = {
|
|
getItem(key) {
|
|
return store[key] || null;
|
|
},
|
|
setItem(key, value) {
|
|
store[key] = value.toString();
|
|
},
|
|
};
|