mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
webapi: add Node.baseURI accessor
This commit is contained in:
@@ -874,6 +874,11 @@ pub const JsApi = struct {
|
|||||||
fn _toString(self: *const Node) []const u8 {
|
fn _toString(self: *const Node) []const u8 {
|
||||||
return self.className();
|
return self.className();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn _baseURI(_: *Node, page: *const Page) []const u8 {
|
||||||
|
return page.url[0..];
|
||||||
|
}
|
||||||
|
pub const baseURI = bridge.accessor(_baseURI, null, .{});
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const Build = struct {
|
pub const Build = struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user