* Limit LGTM errors * Update geometry-browser.html Co-authored-by: Michael Herzog <[email protected]>
@@ -696,8 +696,14 @@
}
//
+
+ const selectedGeometry = window.location.hash.substring( 1 );
- document.getElementById( 'newWindow' ).href += window.location.hash;
+ if ( guis[ selectedGeometry ] !== undefined ) {
+ document.getElementById( 'newWindow' ).href += window.location.hash;
+ }
const gui = new GUI();