From 377f1df445aa64d890db6b609176d6032dd9e37a Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sun, 22 Feb 2026 10:47:51 -0800 Subject: [PATCH] fix: browser detection --- lib/utils/browser_detection_web.dart | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/utils/browser_detection_web.dart b/lib/utils/browser_detection_web.dart index e5b4b69..0e4fccb 100644 --- a/lib/utils/browser_detection_web.dart +++ b/lib/utils/browser_detection_web.dart @@ -4,12 +4,7 @@ import 'dart:html' as html; class BrowserDetection { static bool get isChrome { final userAgent = html.window.navigator.userAgent.toLowerCase(); - final vendor = html.window.navigator.vendor.toLowerCase(); - - // Chrome UA typically contains 'chrome' and vendor is 'Google Inc.' - // This also excludes Firefox, Safari, and sometimes Edge/Brave depending on strictness. - // For Web Bluetooth, Chrome, Edge (latest), and Brave usually work. - // But we'll follow the user's request for "isChrome". - return userAgent.contains('chrome') && vendor.contains('google'); + final isChrome = userAgent.contains('chrome'); + return isChrome; } }