refactor(es modules): continue migration

This commit is contained in:
Azgaar 2022-06-25 18:56:56 +03:00
parent a929667796
commit eaa0046e67
8 changed files with 103 additions and 74 deletions

View file

@ -7,3 +7,11 @@ Node.prototype.on = function (name, fn, options) {
Node.prototype.off = function (name, fn) {
this.removeEventListener(name, fn);
};
export function stored(key: string) {
return localStorage.getItem(key) || null;
}
export function store(key: string, value: string) {
return localStorage.setItem(key, value);
}