Files
VRCX/src/vr.js
2025-07-20 18:11:20 +12:00

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;