meshcore-open/lib/utils/browser_detection_web.dart

10 lines
239 B
Dart
Raw Permalink Normal View History

2026-02-23 03:43:49 -08:00
import 'package:web/web.dart' as web;
2026-02-22 07:40:40 -08:00
class BrowserDetection {
static bool get isChrome {
2026-02-23 03:43:49 -08:00
final userAgent = web.window.navigator.userAgent.toLowerCase();
2026-02-22 10:47:51 -08:00
final isChrome = userAgent.contains('chrome');
return isChrome;
2026-02-22 07:40:40 -08:00
}
}