mediawiki-skins-Vector/resources/skins.vector.typographySurvey/index.js

17 lines
454 B
JavaScript
Raw Normal View History

( function () {
const isMainNamespace = mw.config.get( 'wgNamespaceNumber' ) === 0;
if ( isMainNamespace ) {
mw.loader.using( [ 'vue' ] ).then( function () {
const Vue = require( 'vue' ),
App = require( './TypographySurvey.vue' ),
mountEl = document.createElement( 'div' );
mountEl.id = 'vector-typography-survey';
document.body.appendChild( mountEl );
// @ts-ignore
Vue.createMwApp( App ).mount( mountEl );
} );
}
}() );