Browse Source

fix for js

ncannasse 1 week ago
parent
commit
29980d6df4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/EntryPoint.hx

+ 1 - 1
std/haxe/EntryPoint.hx

@@ -8,7 +8,7 @@ class EntryPoint {
 
 
 	@:keep public static function run() @:privateAccess {
 	@:keep public static function run() @:privateAccess {
 		#if js
 		#if js
-			var nextTick = processEvents();
+			var nextTick = haxe.EventLoop.main.getNextTick();
 			inline function setTimeoutNextTick() {
 			inline function setTimeoutNextTick() {
 				if (nextTick >= 0) {
 				if (nextTick >= 0) {
 					(untyped setTimeout)(run, nextTick * 1000);
 					(untyped setTimeout)(run, nextTick * 1000);