mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
browser: split page start from page navigate
This commit is contained in:
@@ -326,6 +326,8 @@ pub fn main() !void {
|
||||
|
||||
// page
|
||||
const page = try browser.session.createPage();
|
||||
try page.start();
|
||||
defer page.end();
|
||||
|
||||
_ = page.navigate(opts.url, null) catch |err| switch (err) {
|
||||
error.UnsupportedUriScheme, error.UriMissingHost => {
|
||||
|
||||
Reference in New Issue
Block a user