Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.register('/vue-currency-filter/sw.js')
.then(() => {
console.log('Service Worker has been registered')
})
.catch(e =>
console.error('Error during service worker registration:', e)
)
} else {
console.warn('Service Worker is not supported')
}
}
Vue.use(require('vue-script2'))
Vue.use(Ads.Adsense)
Vue.use(Ads.InArticleAdsense)
Vue.use(Ads.InFeedAdsense)
Vue.use(VueHighlightJS)
Vue.use(VueCurrencyFilter, { symbol: '$' })
new Vue({ // eslint-disable-line no-new
el: '#app',
render: h => h(App)
})
import Vue from 'vue'
import App from './App.vue'
import Ads from 'vue-google-adsense'
import VueHighlightJS from 'vue-highlightjs'
/* global process */
if (process.env.NODE_ENV !== 'production') {
Vue.config.devtools = true
}
Vue.use(require('vue-script2'))
Vue.use(Ads.Adsense)
Vue.use(Ads.InArticleAdsense)
Vue.use(Ads.InFeedAdsense)
Vue.use(VueHighlightJS)
new Vue({
el: '#app',
template: '',
components: {App}
})
// add polyfill for IntersectionObserver
require('intersection-observer')
import Vue from 'vue'
import App from './App.vue'
import plugin from './vue-tiny-lazyload-img'
import Ads from 'vue-google-adsense'
// use plugin
Vue.use(plugin)
Vue.use(require('vue-script2'))
Vue.use(Ads.Adsense)
Vue.use(Ads.InArticleAdsense)
Vue.use(Ads.InFeedAdsense)
new Vue({ // eslint-disable-line no-new
el: '#app',
render: h => h(App)
})
/**
* @file Google adsense / ES module
* @module plugins/adsense
* @author Surmon
*/
import Vue from 'vue'
import Ads from 'vue-google-adsense'
Vue.use(require('vue-script2'))
Vue.use(Ads.Adsense)
Vue.use(Ads.InArticleAdsense)
Vue.use(Ads.InFeedAdsense)
Vue.use(Ads.AutoAdsense, { adClient: 'ca-pub-4710915636313788' })
/**
* @file Google adsense / ES module GooGle 广告
* @module plugins/adsense
* @author GuoGuang
*/
import Vue from 'vue'
import Ads from 'vue-google-adsense'
Vue.use(require('vue-script2'))
Vue.use(Ads.Adsense)
Vue.use(Ads.InArticleAdsense)
Vue.use(Ads.InFeedAdsense)