append root element programmatically

This commit is contained in:
b1ek 2023-08-27 13:36:39 +10:00
parent 25ff7a6b99
commit 947f4bdc7f
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 4 additions and 4 deletions

View File

@ -11,11 +11,11 @@ if (NODE_ENV !== 'development') {
document.addEventListener('contextmenu', event => event.preventDefault()); document.addEventListener('contextmenu', event => event.preventDefault());
} }
import { invoke } from '@tauri-apps/api/tauri'; const target = document.createElement('div')
invoke('get_login_types', { srv: 'https://matrix.org' }).then(console.log) document.body.appendChild(target);
const app = new App({ const app = new App({
target: document.getElementById("app"), target
}); })
export default app; export default app;