diff --git a/commet/lib/config/layout_config.dart b/commet/lib/config/layout_config.dart index f1ee7739b..d674ed46d 100644 --- a/commet/lib/config/layout_config.dart +++ b/commet/lib/config/layout_config.dart @@ -63,7 +63,7 @@ extension LayoutQueryData on MediaQueryData { return LayoutType.desktop; } - if (Layout._isWebDesktop()) { + if (PlatformUtils.isWeb && Layout._isWebDesktop()) { return LayoutType.desktop; }