mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-31 09:29:42 +00:00
call AttributeChangedCallback on upgrade
This commit is contained in:
@@ -29,6 +29,7 @@ const Request = @import("Request.zig");
|
||||
const Response = @import("Response.zig");
|
||||
|
||||
const Allocator = std.mem.Allocator;
|
||||
const IS_DEBUG = @import("builtin").mode == .Debug;
|
||||
|
||||
const Fetch = @This();
|
||||
|
||||
@@ -54,6 +55,10 @@ pub fn init(input: Input, page: *Page) !js.Promise {
|
||||
const http_client = page._session.browser.http_client;
|
||||
const headers = try http_client.newHeaders();
|
||||
|
||||
if (comptime IS_DEBUG) {
|
||||
log.debug(.http, "fetch", .{ .url = request._url });
|
||||
}
|
||||
|
||||
try http_client.request(.{
|
||||
.ctx = fetch,
|
||||
.url = request._url,
|
||||
|
||||
Reference in New Issue
Block a user