Remove JSON and add 🍪 Tryconfig save cookies

This commit is contained in:
Aj - Thomas
2022-05-12 21:57:01 +02:00
parent 3ce9c98e03
commit 98e4da5a3b
4 changed files with 2 additions and 20 deletions

View File

@@ -79,6 +79,7 @@ export default function TryConfig(props: any) {
label="Config loader"
onChange={(e) => {
loadConfig(e ?? 'default');
setCookies('config-name', e ?? 'default', { maxAge: 60 * 60 * 24 * 30 });
}}
data={
// If config list is empty, return the current config