mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-04-18 08:21:03 +00:00
* Consistent usage of modal footer * Remove hosts * Moved hosts to dedicated store
12 lines
307 B
JavaScript
12 lines
307 B
JavaScript
import { Hosts } from "$wails/go/app/App";
|
|
import { writable } from "svelte/store";
|
|
import applicationInited from "./inited";
|
|
|
|
const { set, subscribe } = writable();
|
|
|
|
const update = async () => set(await Hosts());
|
|
applicationInited.defer(update);
|
|
|
|
const hosts = { update, subscribe };
|
|
export default hosts;
|