aaand another DNT fix

This commit is contained in:
Joshua Hahn 2020-08-22 18:26:29 +02:00
parent 59f68b8395
commit 6eab94dc4c
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