loadConfig with no cache
This commit is contained in:
parent
58b24e702c
commit
5ab2f7b9b2
2
owe.js
2
owe.js
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user