mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
use a better comparison
This commit is contained in:
@@ -354,10 +354,10 @@ pub fn getFramesLength(self: *const Window) u32 {
|
|||||||
|
|
||||||
var ln: u32 = 0;
|
var ln: u32 = 0;
|
||||||
while (walker.next()) |node| {
|
while (walker.next()) |node| {
|
||||||
const other_element = node.is(Element) orelse continue;
|
if (node.is(Element.Html.IFrame) != null) {
|
||||||
_ = other_element.is(Element.Html.IFrame) orelse continue;
|
|
||||||
ln += 1;
|
ln += 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ln;
|
return ln;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user