mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-11 10:53:52 +02:00
27 lines
641 B
JavaScript
27 lines
641 B
JavaScript
// Copyright(c) 2019-2025 pypy, Natsumi and individual contributors.
|
|
// All rights reserved.
|
|
//
|
|
// This work is licensed under the terms of the MIT license.
|
|
// For a copy, see <https://opensource.org/licenses/MIT>.
|
|
|
|
import Vue from 'vue';
|
|
import { initNoty } from './plugin/noty';
|
|
import './plugin/i18n.js';
|
|
import InteropApi from './ipc-electron/interopApi.js';
|
|
import Vr from './Vr.vue';
|
|
|
|
initNoty(true);
|
|
|
|
if (WINDOWS) {
|
|
await CefSharp.BindObjectAsync('AppApiVr');
|
|
} else {
|
|
// @ts-ignore
|
|
window.AppApiVr = InteropApi.AppApiVrElectron;
|
|
}
|
|
|
|
const $app = new Vue({
|
|
render: (h) => h(Vr)
|
|
}).$mount('#root');
|
|
|
|
window.$app = $app;
|