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());
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue