diff --git a/js/test/Ice/binding/Client.js b/js/test/Ice/binding/Client.js index ef2c9816f18..7a794005031 100644 --- a/js/test/Ice/binding/Client.js +++ b/js/test/Ice/binding/Client.js @@ -581,7 +581,7 @@ { const out = this.getWriter(); [communicator, args] = this.initialize(args); - if(typeof navigator !== 'undefined' && isSafari() && isWorker()) + if(isBrowser && isSafari() && isWorker()) { // // BUGFIX: