Skip to content

Commit

Permalink
Merge pull request #45 from MarianoFacundoArch/patch-1
Browse files Browse the repository at this point in the history
Update detectIncognito.ts
  • Loading branch information
Joe12387 authored Nov 22, 2024
2 parents 2432aec + 991012b commit c7bf274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/detectIncognito.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function detectIncognito(): Promise<{ isPrivate: boolean; browserNa
function feid (): number {
let toFixedEngineID = 0
try {
(-1).toFixed(-1)
eval(`(-1).toFixed(-1);`);
} catch (e) {
toFixedEngineID = (e as Error).message.length // Safari 44, Chrome 51, Firefox 25
}
Expand Down Expand Up @@ -260,4 +260,4 @@ if (typeof window !== 'undefined') {
window.detectIncognito = detectIncognito;
}

export default detectIncognito;
export default detectIncognito;

0 comments on commit c7bf274

Please sign in to comment.