Skip to content

Commit 2f12e2c

Browse files
committed
change remotefileinterval to 0 from null
1 parent ff3853e commit 2f12e2c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/default/compliments/compliments.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/* global Cron */
22
/* global global */
33

4-
console.log("window name='"+window.name+"'")
5-
const compliments_test_mode=(window.name=='jsdom')?true:false
6-
74
Module.register("compliments", {
85
// Module config defaults.
96
defaults: {
@@ -50,7 +47,7 @@ Module.register("compliments", {
5047
this.config.compliments = JSON.parse(response);
5148
this.updateDom();
5249
if (this.config.remoteFileRefreshInterval !== 0){
53-
if(this.config.remoteFileRefreshInterval >= this.refreshMinimumDelay) {
50+
if(this.config.remoteFileRefreshInterval >= this.refreshMinimumDelay || window.intest) {
5451
setInterval(async () => {
5552
const response = await this.loadComplimentFile();
5653
this.compliments_new = JSON.parse(response);

0 commit comments

Comments
 (0)