Skip to content

Commit 049b10c

Browse files
committed
fix null vs 0 test for file refresh interval
1 parent b907682 commit 049b10c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/default/compliments/compliments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Module.register("compliments", {
206206
// we need to force the server to not give us the cached result
207207
// create an extra property (ignored by the server handler) just so the url string is different
208208
// that will never be the same, using the ms value of date
209-
if(this.config.remoteFileRefreshInterval!=null)
209+
if(this.config.remoteFileRefreshInterval!=0)
210210
this.urlSuffix= "?dummy="+Date.now()
211211
//
212212
const response = await fetch(url+this.urlSuffix);
@@ -274,7 +274,7 @@ Module.register("compliments", {
274274
// only in test mode
275275
if (window.mmTestMode === 'true') {
276276
// check for (undocumented) remoteFile2 to test new file load
277-
if(this.config.remoteFile2!== null && this.config.remoteFileRefreshInterval!==null){
277+
if(this.config.remoteFile2!== null && this.config.remoteFileRefreshInterval!==0){
278278
// switch the file so that next time it will be loaded from a changed file
279279
this.config.remoteFile=this.config.remoteFile2
280280
}

0 commit comments

Comments
 (0)