mirror of
https://github.com/vibegif/vibegif.lol.git
synced 2026-04-07 10:12:13 +00:00
Delete: Merged into app.js
This commit is contained in:
13
storage.js
13
storage.js
@@ -1,13 +0,0 @@
|
|||||||
const KEY = 'vibegif_api_key';
|
|
||||||
|
|
||||||
export function getApiKey() {
|
|
||||||
return localStorage.getItem(KEY) || '';
|
|
||||||
}
|
|
||||||
|
|
||||||
export function setApiKey(k) {
|
|
||||||
localStorage.setItem(KEY, k.trim());
|
|
||||||
}
|
|
||||||
|
|
||||||
export function hasApiKey() {
|
|
||||||
return !!getApiKey();
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user