Skip to content

Commit b1fbde6

Browse files
committed
polyfill window.URL to solve gltf loader issue
1 parent 3af4d15 commit b1fbde6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export function createScopedThreejs(canvas) {
1818
const window = {
1919
AudioContext: function() {},
2020
addEventListener: function() {},
21-
removeEventListener: function() {}
21+
removeEventListener: function() {},
22+
URL: {},
2223
}
2324
// eslint-disable-next-line
2425
const XMLHttpRequest = _XMLHttpRequest

0 commit comments

Comments
 (0)