mirror of
https://github.com/processing/processing4.git
synced 2026-04-10 14:39:46 +02:00
js mode example cleanups
This commit is contained in:
@@ -7,7 +7,7 @@ window.onload = function () {
|
||||
function tryFindSketch () {
|
||||
var sketch = Processing.instances[0];
|
||||
if ( sketch == undefined )
|
||||
return setTimeout(tryFindSketch, 200);
|
||||
|
||||
sketch.setTree( document.body.parentNode );
|
||||
setTimeout(tryFindSketch, 200); // retry after 0.2 secs
|
||||
else
|
||||
sketch.setTree( document.body.parentNode );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user