We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
browser
$browser
1 parent 8137ee0 commit 83b76feCopy full SHA for 83b76fe
template/src/popup/popup.js
@@ -1,10 +1,11 @@
1
-{{#if mozillaPolyfill}}global.browser = require('webextension-polyfill'){{/if}}
2
-
3
import Vue from 'vue'
4
import App from './App'
5
{{#if store}}import store from '../store'{{/if}}
6
{{#if router}}import router from './router'{{/if}}
7
+{{#if mozillaPolyfill}}global.browser = require('webextension-polyfill')
+Vue.prototype.$browser = global.browser{{/if}}
8
+
9
/* eslint-disable no-new */
10
new Vue({
11
el: '#app',
0 commit comments