mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
refactor(es modules): continue migration
This commit is contained in:
parent
a929667796
commit
eaa0046e67
8 changed files with 103 additions and 74 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue