54145a753a
works well in both firefox and chrome
10 lines
296 B
JavaScript
10 lines
296 B
JavaScript
// entry file for the Web Extension
|
|
/* eslint-disable no-undef */
|
|
|
|
const MAIN_FILE = 'dist/main.js'
|
|
|
|
const script = document.createElement('script')
|
|
script.src = chrome.runtime.getURL(MAIN_FILE)
|
|
script.addEventListener('load', () => script.remove())
|
|
|
|
document.documentElement.appendChild(script)
|