Skip to content

Commit

Permalink
fix for issue #288
Browse files Browse the repository at this point in the history
- using window instead of document object
  • Loading branch information
kalwalt committed Oct 8, 2022
1 parent e6f9e0d commit 5a66982
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/arNFT_multi_example.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@
let sceneThreejs = new ARnftThreejs.SceneRendererTJS(config, canvas, nft.uuid, true);
sceneThreejs.initRenderer();

document.addEventListener('getMatrixGL_RH-' + nft.uuid + '-pinball', function() {
window.addEventListener('getMatrixGL_RH-' + nft.uuid + '-pinball', function() {
console.log('this is pinball!!');
})
document.addEventListener('getMatrixGL_RH-' + nft.uuid + '-kuva', function() {
window.addEventListener('getMatrixGL_RH-' + nft.uuid + '-kuva', function() {
console.log('this is kuva!!');
})
document.addEventListener('getMatrixGL_RH-' + nft.uuid + '-chalk_multi', function() {
window.addEventListener('getMatrixGL_RH-' + nft.uuid + '-chalk_multi', function() {
console.log('this is chalk_multi!!');
})

Expand Down

0 comments on commit 5a66982

Please sign in to comment.