Last active
July 11, 2024 05:34
-
-
Save cj-praveen/ba30aebfc146c19b7578f4333585f5d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.navigator.browserName = window.navigator.userAgent.includes("Firefox/") ? "Firefox" : | |
window.navigator.userAgent.includes("Edg/") ? "Edge" : | |
window.navigator.userAgent.includes("Brave") ? "Brave" : | |
window.navigator.userAgent.includes("OPR/") || window.navigator.userAgent.includes("Opera/") ? "Opera" : | |
window.navigator.userAgent.includes("Vivaldi/") ? "Vivaldi" : | |
window.navigator.userAgent.includes("Chrome/") ? "Chrome" : | |
window.navigator.userAgent.includes("Safari/") ? "Safari" : | |
window.navigator.userAgent.includes("MSIE ") || window.navigator.userAgent.includes("Trident/") ? "Internet Explorer" : | |
window.navigator.userAgent.includes("SamsungBrowser/") ? "Samsung Internet" : | |
"Unknown"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment