Skip to content

Commit

Permalink
Only load trusted iframe (#23245)
Browse files Browse the repository at this point in the history
  • Loading branch information
r0hanSH committed Jan 24, 2022
1 parent 55d4f24 commit 0c31bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Expand Up @@ -498,7 +498,7 @@ <h1><a href="https://threejs.org">three.js</a></h1>
const oldIframe = iframe;
iframe = oldIframe.cloneNode();

if ( hash ) {
if ( hash && titles[ splitHash[ 0 ] ] ) {

iframe.src = splitHash[ 0 ] + '.html' + splitHash[ 1 ];
subtitle = titles[ splitHash[ 0 ] ] + splitHash[ 1 ] + ' – ';
Expand Down

0 comments on commit 0c31bc6

Please sign in to comment.