File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
services/static-webserver/client/source/class/osparc/utils Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments