diff --git a/Source/ThirdParty/jsep.js b/Source/ThirdParty/jsep.js index 2ba42bd1d12..c7a175a5657 100644 --- a/Source/ThirdParty/jsep.js +++ b/Source/ThirdParty/jsep.js @@ -680,9 +680,8 @@ define(function() { } }(this)); - if (typeof jsep.noConflict === 'function') { + // `jsep` only exists when running in the browser + if (typeof jsep !== 'undefined') { return jsep.noConflict(); } - - return jsep; });