mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-12-17 00:38:59 +00:00
Rework page wait again
Further reducing bouncing between page and server for loop polling. If there is a page, the page polls. If there isn't a page, the server polls. Simpler.
This commit is contained in:
@@ -109,7 +109,7 @@ fn run(
|
||||
const url = try std.fmt.allocPrint(arena, "http://localhost:9582/{s}", .{test_file});
|
||||
try page.navigate(url, .{});
|
||||
|
||||
page.wait(2);
|
||||
_ = page.wait(2000);
|
||||
|
||||
const js_context = page.main_context;
|
||||
var try_catch: Env.TryCatch = undefined;
|
||||
|
||||
Reference in New Issue
Block a user