This commit is contained in:
syuilo
2018-02-11 12:08:43 +09:00
parent 7664354187
commit 92826c406a
12 changed files with 113 additions and 74 deletions

View File

@@ -15,12 +15,17 @@ import MkIndex from './views/pages/index.vue';
/**
* init
*/
init(async (os, launch) => {
init(async (launch) => {
/**
* Fuck AD Block
*/
fuckAdBlock();
// Register components
require('./views/components');
const app = launch();
/**
* Init Notification
*/
@@ -31,17 +36,12 @@ init(async (os, launch) => {
}
if ((Notification as any).permission == 'granted') {
registerNotifications(os.stream);
registerNotifications(app.$data.os.stream);
}
}
// Register components
require('./views/components');
const app = launch();
app.$router.addRoutes([{
path: '/', component: MkIndex, props: { os }
path: '/', component: MkIndex
}]);
}, true);