2
0
Mr.doob 3 жил өмнө
parent
commit
b84db4a2d3

+ 8 - 5
test/e2e/clean-page.js

@@ -4,7 +4,8 @@
 
 
 	/* Remove start screen ( or press some button ) */
 	/* Remove start screen ( or press some button ) */
 
 
-	let button = document.getElementById( 'startButton' );
+	const button = document.getElementById( 'startButton' );
+
 	if ( button ) {
 	if ( button ) {
 
 
 		button.click();
 		button.click();
@@ -14,21 +15,23 @@
 
 
 	/* Remove dat.gui and fonts */
 	/* Remove dat.gui and fonts */
 
 
-	let style = document.createElement( 'style' );
+	const style = document.createElement( 'style' );
 	style.type = 'text/css';
 	style.type = 'text/css';
 	style.innerHTML = `body { font size: 0 !important; }
 	style.innerHTML = `body { font size: 0 !important; }
       #info, button, input, body > div.dg.ac, body > div.lbl { display: none !important; }`;
       #info, button, input, body > div.dg.ac, body > div.lbl { display: none !important; }`;
-	let head = document.getElementsByTagName( 'head' );
+
+	const head = document.getElementsByTagName( 'head' );
+
 	if ( head.length > 0 ) {
 	if ( head.length > 0 ) {
 
 
 		head[ 0 ].appendChild( style );
 		head[ 0 ].appendChild( style );
 
 
 	}
 	}
 
 
-
 	/* Remove stats.js */
 	/* Remove stats.js */
 
 
-	let canvas = document.getElementsByTagName( 'canvas' );
+	const canvas = document.getElementsByTagName( 'canvas' );
+
 	for ( let i = 0; i < canvas.length; ++ i ) {
 	for ( let i = 0; i < canvas.length; ++ i ) {
 
 
 		if ( canvas[ i ].height === 48 ) {
 		if ( canvas[ i ].height === 48 ) {