append root element programmatically
This commit is contained in:
parent
25ff7a6b99
commit
947f4bdc7f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue