mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 16:23:50 +02:00
Organize bootstrap.js
This commit is contained in:
19
src/vr/vr.js
19
src/vr/vr.js
@@ -5,22 +5,13 @@
|
||||
// For a copy, see <https://opensource.org/licenses/MIT>.
|
||||
|
||||
import { createApp } from 'vue';
|
||||
import { initNoty } from '../plugin/noty';
|
||||
import { initPlugins } from '../plugin';
|
||||
import { i18n } from '../plugin/i18n';
|
||||
import InteropApi from '../ipc-electron/interopApi.js';
|
||||
import Vr from './Vr.vue';
|
||||
|
||||
initNoty(true);
|
||||
initPlugins(true);
|
||||
|
||||
if (WINDOWS) {
|
||||
await CefSharp.BindObjectAsync('AppApiVr');
|
||||
} else {
|
||||
// @ts-ignore
|
||||
window.AppApiVr = InteropApi.AppApiVrElectron;
|
||||
}
|
||||
const vr = createApp(Vr);
|
||||
vr.use(i18n);
|
||||
|
||||
const $app = createApp(Vr);
|
||||
|
||||
$app.use(i18n);
|
||||
|
||||
$app.mount('#root');
|
||||
vr.mount('#root');
|
||||
|
||||
Reference in New Issue
Block a user