import {App} from "/assets/App.js"; (async function () { $("#buttons").append(``); $("#sync").click(function () { const self = $(this); self.prop("disabled", true); (async function () { try { alert(await App.RPC.__invoke("netsync::sync")); } finally { setTimeout(() => { location.reload(); }, 5000); } })(); }); })();