vuenity
Version:
A Vue.js wrapper with communications for WebGL Unity games.
29 lines (21 loc) • 518 B
JavaScript
import Vuenity from "./vuenity.vue";
import Vue from "vue";
export function install (Vue) {
if (install.installed) return;
install.installed = true;
Vue.component ("Vuenity", Vuenity);
}
const plugin = {
install
};
let GlobalVue = null;
if (typeof window !== "undefined") {
GlobalVue = window.Vue;
} else if (typeof global !== "undefined") {
GlobalVue = global.Vue;
}
if (GlobalVue) {
GlobalVue.use (plugin);
}
export default Vuenity;
export { UnityContent } from "./unity-content";