From 947f4bdc7fff47276471162e067106950a4815fd Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 27 Aug 2023 13:36:39 +1000 Subject: [PATCH] append root element programmatically --- src/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 0c2395d..57058c9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,11 +11,11 @@ if (NODE_ENV !== 'development') { document.addEventListener('contextmenu', event => event.preventDefault()); } -import { invoke } from '@tauri-apps/api/tauri'; -invoke('get_login_types', { srv: 'https://matrix.org' }).then(console.log) +const target = document.createElement('div') +document.body.appendChild(target); const app = new App({ - target: document.getElementById("app"), -}); + target +}) export default app;