Browse Source

make this work as an es6 module.

We should probably make it an es6 module.
Gregg Tavares 5 years ago
parent
commit
63be4938a7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      threejs/resources/webgl-debug-helper.js

+ 2 - 2
threejs/resources/webgl-debug-helper.js

@@ -29,7 +29,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-/* global define */
+/* global define, globalThis */
 
 (function(root, factory) {  // eslint-disable-line
   if (typeof define === 'function' && define.amd) {
@@ -41,7 +41,7 @@
     // Browser globals
     root.webglDebugHelper = factory.call(root);
   }
-}(this, function() {
+}(this || globalThis, function() {
   'use strict';  // eslint-disable-line
 
   //------------ [ from https://github.com/KhronosGroup/WebGLDeveloperTools ]