diff options
Diffstat (limited to 'js/src/Ice/browser/TimerUtil.js')
-rw-r--r-- | js/src/Ice/browser/TimerUtil.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/Ice/browser/TimerUtil.js b/js/src/Ice/browser/TimerUtil.js index bac6009a830..048600b0cf5 100644 --- a/js/src/Ice/browser/TimerUtil.js +++ b/js/src/Ice/browser/TimerUtil.js @@ -205,7 +205,7 @@ if(typeof navigator !== "undefined" && // Ice.Timer = createTimerObject(); } -else if(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) +else if(isWorker()) { // // If we are running in a worker don't spawn a separate worker for the timer |