export function getUserAgent() { try { return navigator.userAgent; } catch (e) { return ""; } }