You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
meshcore-client/lib/utils/browser_detection_web.dart

11 lines
272 B

// ignore: avoid_web_libraries_in_flutter
import 'dart:html' as html;
class BrowserDetection {
static bool get isChrome {
final userAgent = html.window.navigator.userAgent.toLowerCase();
final isChrome = userAgent.contains('chrome');
return isChrome;
}
}

Powered by TurnKey Linux.