summaryrefslogtreecommitdiff
path: root/src/index.js
blob: 18eb719207a0a1733f47f44058831c0c22be3c7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import Vue from 'vue';
import VueRouter from 'vue-router';
import Buefy from 'buefy'
import 'buefy/lib/buefy.css'
import Ads from 'vue-google-adsense';

import App from './App.vue';
import ModeTab from './ModeTab.vue';

// Buefy's Bulma components CSS will be purged in production!
// Add exceptions to webpack.config.js PurgecssPlugin

Vue.use(VueRouter);
Vue.use(Buefy);
Vue.use(require('vue-script2'))
Vue.use(Ads.Adsense)

const router = new VueRouter({
  routes: [ {
    path: '/',
    name: 'home',
    component: ModeTab,
  } ]
});

new Vue({
  router,
  el: '#app',
  render: h => h(App),
  mounted: function() {
    if ('serviceWorker' in navigator) {
      navigator.serviceWorker.register('/service-worker.js').then((registration) => {
        if (typeof registration.update == 'function') {
          registration.update();
        }
      });
    }
  },
});