Skip to content

Commit bbc9e58

Browse files
committed
chore: remove orther agents browser
1 parent 0ffb76d commit bbc9e58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/detectBrowser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const detectBrowser = (): browsersName => {
22
const userAgent = navigator.userAgent.toLowerCase();
3-
if (userAgent.includes('chrome') && !userAgent.includes('opera') && !userAgent.includes('opr')) {
3+
if (userAgent.includes('chrome')) {
44
return 'chrome'; // Incluye Chrome, Edge, Brave
55
} else if (userAgent.includes('firefox')) {
66
return 'firefox';

0 commit comments

Comments
 (0)