diff --git a/background/index.html b/background/index.html index 17f1397..d2cf982 100644 --- a/background/index.html +++ b/background/index.html @@ -4,7 +4,6 @@ /usr/space - diff --git a/background/index.js b/background/index.js index 7cd05c2..c5cabbd 100644 --- a/background/index.js +++ b/background/index.js @@ -1,3 +1,5 @@ +import Config from "../config.js"; + function fetchJson(url) { return fetch(url).then((response) => (response.json())); } diff --git a/config.js b/config.js index 904b1c8..7eff372 100644 --- a/config.js +++ b/config.js @@ -1,4 +1,4 @@ -window.Config = { +export default { refreshTimeout: 1000 * 60 * 5, // 5min, spaceApiUrl: 'https://www.usrspace.at/spaceapi.json', calenderUrl: 'https://www.usrspace.at/calendar.php', diff --git a/popup/index.html b/popup/index.html index c795db0..55796a8 100644 --- a/popup/index.html +++ b/popup/index.html @@ -64,7 +64,6 @@ -