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());
}
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;