Harden bot, storage and web API
This commit is contained in:
parent
e974bc6660
commit
20624a5c9c
43 changed files with 1265 additions and 1012 deletions
|
|
@ -2,11 +2,11 @@ const API_KEY_STORAGE_KEY = "palico-api-key";
|
|||
const DISPLAY_NAME_STORAGE_KEY = "palico-display-name";
|
||||
|
||||
export function getStoredApiKey() {
|
||||
return localStorage.getItem(API_KEY_STORAGE_KEY) || "";
|
||||
return sessionStorage.getItem(API_KEY_STORAGE_KEY) || "";
|
||||
}
|
||||
|
||||
export function setStoredApiKey(value) {
|
||||
localStorage.setItem(API_KEY_STORAGE_KEY, value || "");
|
||||
sessionStorage.setItem(API_KEY_STORAGE_KEY, value || "");
|
||||
}
|
||||
|
||||
export function getStoredDisplayName() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue