mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-04-19 08:51:03 +00:00
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;
|