Skip to content

Commit 90569a9

Browse files
committed
Fix bad test for nodejs in shader.js
1 parent 14fcb9d commit 90569a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const ShaderPrototype = Object.create(Object, {
109109
this._textures = {};
110110
this._attributes = {};
111111
let xmlhttp = null;
112-
if (typeof module !== 'undefined' && module.exports) {
112+
if (typeof module !== 'undefined' && typeof require === 'function') {
113113
const fs = require('fs');
114114
let response = fs.readFileSync(vertexUrl, "utf8");
115115
shaderlog[vertexUrl] = response;

0 commit comments

Comments
 (0)