Click function doesn't work in index.js

Hi,

See my building project on this URL:
http://jarmoroos.com/object/

If you inspect the index.js file you see I set an alert(“clicked”);
when the user clicks the ‘Windows’ toggle. But the alert doesn’t show up.
After that the windows of the plane should be hidden. Why does this work on my laptop locally but not on a live website??

Hope you guys can help me!

Regards,
Jarmo

Hi,

forbbiden options makes viewer api inoperable.
remove “internal: 1” and it should work

Ah thanks!!
Looked so long for this tiny rule haha.