From 75aefd47345928ae7c670da8676b846b43c37348 Mon Sep 17 00:00:00 2001 From: ggetz Date: Mon, 10 Jul 2017 15:17:52 -0400 Subject: [PATCH] check for jsep being undefined --- Source/ThirdParty/jsep.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; });