loadConfig with no cache

This commit is contained in:
Debian 2022-10-06 20:08:58 +00:00
parent 58b24e702c
commit 5ab2f7b9b2

2
owe.js
View File

@ -42,7 +42,7 @@ function loadSentences(alertIfNew = false, increaseUnread = true) {
}
function loadConfig() {
fetch("./data/config.json").then((response) => {
fetch("./data/config.json", {headers: {"Cache-Control": "no-cache, no-store"}}).then((response) => {
return response.text().then((text) => {
config_data = JSON.parse(text);
setInterval(loadSentences, 5000, ((typeof config_data.notifications !== "undefined") ? config_data.notifications : true));