Skip to content

Commit ff3853e

Browse files
committed
add check for minimum refresh time change from null to 0
1 parent 93c3875 commit ff3853e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/default/compliments/compliments.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Module.register("compliments", {
1616
},
1717
updateInterval: 30000,
1818
remoteFile: null,
19-
remoteFileRefreshInterval: null,
19+
remoteFileRefreshInterval: 0,
2020
fadeSpeed: 4000,
2121
morningStartTime: 3,
2222
morningEndTime: 12,
@@ -49,8 +49,8 @@ Module.register("compliments", {
4949
const response = await this.loadComplimentFile();
5050
this.config.compliments = JSON.parse(response);
5151
this.updateDom();
52-
if (this.config.remoteFileRefreshInterval !== null){
53-
if(this.config.remoteFileRefreshInterval>=this.refreshMinimumDelay) {
52+
if (this.config.remoteFileRefreshInterval !== 0){
53+
if(this.config.remoteFileRefreshInterval >= this.refreshMinimumDelay) {
5454
setInterval(async () => {
5555
const response = await this.loadComplimentFile();
5656
this.compliments_new = JSON.parse(response);

0 commit comments

Comments
 (0)