Harden bot, storage and web API

This commit is contained in:
Shinuwa 2026-06-30 17:25:00 +02:00
parent e974bc6660
commit 20624a5c9c
43 changed files with 1265 additions and 1012 deletions

View file

@ -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() {