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 abe9ddfde97..f3f66c33da2 100644 --- a/js/src/Ice/browser/TimerUtil.js +++ b/js/src/Ice/browser/TimerUtil.js @@ -191,7 +191,7 @@ if(typeof navigator !== "undefined" && // Ice.Timer = createTimerObject(); } -else if(typeof WorkerGlobalScope !== 'undefined' && this instanceof WorkerGlobalScope) +else if(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) { // // If we are running in a worker don't spawn a separate worker for the timer |