ng OffscreenCanvas' ); /* eslint-disable-line no-console */

}

function startMainPage( canvas ) {

	init( { canvas, inputElement: canvas } );
	console.log( 'using regular canvas' ); /* eslint-disable-line no-console */

}

function main() { /* eslint consistent-return: 0 */

	const canvas = document.querySelector( '#c' );
	if ( canvas.transferControlToOffscreen ) {

		startWorker( canvas );

	} else {

		startMainPage( canvas );

	}

}

main();
</script>
</html>

