Browse Source

fix compatibility with chromium based browsers

master
Thomas Rupprecht 3 years ago
parent
commit
e21dac9934
  1. 5
      background/index.html
  2. 1186
      browser-polyfill.js
  3. 16
      manifest.json
  4. 5
      popup/index.html

5
background/index.html

@ -3,7 +3,8 @@
<head>
<meta charset="utf-8">
<title>/usr/space</title>
<script src="../config.js"></script>
<script type="module" src="index.js"></script>
<script type="application/javascript" src="../browser-polyfill.js"></script>
<script type="application/javascript" src="../config.js"></script>
<script type="application/javascript" src="index.js"></script>
</head>
</html>

1186
browser-polyfill.js
File diff suppressed because it is too large
View File

16
manifest.json

@ -12,8 +12,13 @@
},
"browser_action": {
"browser_style": true,
//"chrome_style": true,
"default_title": "/usr/space",
"default_icon": "icons/logo.svg",
//"default_icon": "icons/logo.svg",
"default_icon": {
"16": "icons/logo-19.png",
"32": "icons/logo-38.png"
},
"default_area": "navbar",
"default_popup": "popup/index.html"
},
@ -21,8 +26,9 @@
"https://usrspace.at/*",
"webRequest"
],
"developer": {
"name": "Thomas Rupprecht",
"url": "https://blog.ximex.at/"
}
"author": "Thomas Rupprecht"
//"developer": {
// "name": "Thomas Rupprecht",
// "url": "https://blog.ximex.at/"
//}
}

5
popup/index.html

@ -40,7 +40,8 @@
<h2>Infos</h2>
<pre id="space-api"><code>loading...</code></pre>
<script src="../config.js"></script>
<script src="index.js"></script>
<script type="application/javascript" src="../browser-polyfill.js"></script>
<script type="application/javascript" src="../config.js"></script>
<script type="application/javascript" src="index.js"></script>
</body>
</html>
Loading…
Cancel
Save