Skip to content

Commit 10973ee

Browse files
committed
minor
1 parent 7016f9b commit 10973ee

File tree

1 file changed

+9
-7
lines changed
  • services/static-webserver/client/source/class/osparc/utils

1 file changed

+9
-7
lines changed

services/static-webserver/client/source/class/osparc/utils/Utils.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,15 @@ qx.Class.define("osparc.utils.Utils", {
333333
}
334334

335335
const blinkInterval = setInterval(() => {
336-
button.setBackgroundColor((count % 2 === 0) ? blinkColor : baseColor);
337-
count++;
338-
339-
if (count >= nTimes * 2) {
340-
clearInterval(blinkInterval);
341-
button.setBackgroundColor(baseColor);
342-
button._blinkingIntervalId = null; // cleanup
336+
if (button && button.getContentElement()) {
337+
button.setBackgroundColor((count % 2 === 0) ? blinkColor : baseColor);
338+
count++;
339+
340+
if (count >= nTimes * 2) {
341+
clearInterval(blinkInterval);
342+
button.setBackgroundColor(baseColor);
343+
button._blinkingIntervalId = null; // cleanup
344+
}
343345
}
344346
}, interval);
345347

0 commit comments

Comments
 (0)