Skip to content

Lightpanda: the headless browser designed for AI and automation

cdp, minor: don't warn unimplemented when deviceScaleFactor == 1

Karl Seguinfabbc958fa59
diff --git a/src/cdp/domains/emulation.zig b/src/cdp/domains/emulation.zig
index dd3240069..86262fc6f 100644
--- a/src/cdp/domains/emulation.zig
+++ b/src/cdp/domains/emulation.zig
@@ -79,7 +79,7 @@ fn setDeviceMetricsOverride(cmd: *CDP.Command) !void {
// Not-yet-emulated parameters: accept them but warn so the caller knows
// they are ignored.
if (params.deviceScaleFactor) |v| {
- if (v != 0) log.warn(.not_implemented, "setDeviceMetricsOverride", .{
+ if (v != 0 and v != 1) log.warn(.not_implemented, "setDeviceMetricsOverride", .{
.cdp_cmd = "Emulation.setDeviceMetricsOverride",
.param = "deviceScaleFactor",
.value = v,