use a better comparison

This commit is contained in:
Pierre Tachoire
2025-12-24 08:46:46 +01:00
parent 4d67cfa340
commit ba974f695d

View File

@@ -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;
} }