Webview: init global state for current clan path

This commit is contained in:
Johannes Kirschbauer 2024-06-15 11:34:20 +02:00
parent 149be249fa
commit af19950dfa
Signed by: hsjobeki
SSH Key Fingerprint: SHA256:vX3utDqig7Ph5L0JPv87ZTPb/w7cMzREKVZzzLFg9qU

View File

@ -7,6 +7,12 @@ import { Toaster } from "solid-toast";
// Global state
const [route, setRoute] = createSignal<Route>("machines");
const [currClanURI, setCurrClanURI] = createSignal<string>(
"/home/johannes/1_clans/myclan"
);
export { currClanURI, setCurrClanURI };
export { route, setRoute };
const App: Component = () => {