Compare commits

...

2 commits

Author SHA1 Message Date
Thomas Rupprecht 0fe1aaf189 docs(readme): change README title 2023-06-01 00:03:51 +02:00
Thomas Rupprecht f3d8199b97 refactor(config): move homepage url to config 2023-06-01 00:02:31 +02:00
4 changed files with 10 additions and 3 deletions

View file

@ -13,6 +13,11 @@ All notable changes to this project will be documented in this file.
- Correctly update the changelog on release
### 🚜 Refactor
- Improve browser-polyfill inject
- Move homepage url to config
### 📚 Documentation
- Add logo and screenshot to readme

View file

@ -1,4 +1,4 @@
# /usr/space Web-Extension (Firefox Add-on)
# /usr/space Web-Extension (Browser Add-on)
[![Mozilla Add-on](https://img.shields.io/amo/v/usr-space?style=for-the-badge)](https://addons.mozilla.org/de/firefox/addon/usr-space/)
[![Mozilla Add-on](https://img.shields.io/amo/dw/usr-space?style=for-the-badge)](https://addons.mozilla.org/de/firefox/addon/usr-space/)

View file

@ -1,10 +1,10 @@
import { REFRESH_TIMEOUT, API_URLS, BADGE_COLORS } from './config.js';
import { REFRESH_TIMEOUT, HOMEPAGE, API_URLS, BADGE_COLORS } from './config.js';
// [INJECT-BROWSER-POLYFILL]
browser.runtime.onInstalled.addListener(async (details) => {
if (details.reason === 'install') {
await browser.tabs.create({
url: 'https://www.usrspace.at/',
url: HOMEPAGE,
});
}
});

View file

@ -1,5 +1,7 @@
export const REFRESH_TIMEOUT = 5;
export const HOMEPAGE = 'https://www.usrspace.at/';
export const API_URLS = {
spaceApi: 'https://www.usrspace.at/spaceapi.json',
calender: 'https://www.usrspace.at/calendar.php',