glTF-Validator icon indicating copy to clipboard operation
glTF-Validator copied to clipboard

Handle reliance on 'window' object as optional

Open haywirez opened this issue 1 year ago • 2 comments

Right now, the package fails validation when trying to use in node apps or service workers where window is not available:

Uncaught ReferenceError: window is not defined
    at index.js:33:72 in node_modules/gltf-validator/gltf_validator.dart.js
    at index.js:15:50 in __require2
    at index.js:20881:17

Would be nice to address this if possible! My use case involves server-side validation.

haywirez avatar Nov 07 '22 00:11 haywirez