getBrowserInfo static method
Get basic browser info for security context
Implementation
static Map<String, dynamic> getBrowserInfo() {
try {
return {
'userAgent': web.window.navigator.userAgent,
'platform': web.window.navigator.platform,
'language': web.window.navigator.language,
'cookiesEnabled': web.window.navigator.cookieEnabled,
'isSecureContext': web.window.isSecureContext,
'protocol': web.window.location.protocol,
};
} catch (_) {
return {};
}
}