Merge pull request #48 from joshinat0r/master

DNT & Safari
This commit is contained in:
Mike Cao 2020-08-22 10:09:27 -07:00 committed by GitHub
commit d863e9ce49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,9 @@ export const doNotTrack = () => {
navigator.doNotTrack == 'yes' ||
navigator.doNotTrack == '1' ||
navigator.msDoNotTrack == '1' ||
(window.external.msTrackingProtectionEnabled && window.external.msTrackingProtectionEnabled())
(window.external &&
window.external.msTrackingProtectionEnabled &&
window.external.msTrackingProtectionEnabled())
) {
return true;
} else {

File diff suppressed because one or more lines are too long