forked from XimeX/usrspace-browser-addon
refactor(background): remove background.html and import directly as ES module
This commit is contained in:
parent
0d88ee76e2
commit
7a707c9fb0
|
@ -1,10 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>/usr/space</title>
|
||||
|
||||
<!-- [INJECT-BROWSER-POLYFILL] -->
|
||||
<script type="module" src="background.js"></script>
|
||||
</head>
|
||||
</html>
|
|
@ -1,6 +1,5 @@
|
|||
import { REFRESH_TIMEOUT, API_URLS, BADGE_COLORS } from './config.js';
|
||||
|
||||
document.querySelector('html').setAttribute('lang', browser.i18n.getUILanguage());
|
||||
// [INJECT-BROWSER-POLYFILL]
|
||||
|
||||
browser.runtime.onInstalled.addListener(async (details) => {
|
||||
if (details.reason === 'install') {
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
"96": "icons/favicon.svg"
|
||||
},
|
||||
"background": {
|
||||
"page": "background.html"
|
||||
"type": "module",
|
||||
"scripts": ["background.js"]
|
||||
},
|
||||
"action": {
|
||||
"browser_style": true,
|
||||
|
@ -32,7 +33,7 @@
|
|||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
"id": "{c9a907ad-a047-4cf6-8b5d-95097d31aa5b}",
|
||||
"strict_min_version": "109.0"
|
||||
"strict_min_version": "112.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue