wip
This commit is contained in:
parent
7664354187
commit
92826c406a
12 changed files with 113 additions and 74 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue