aaand another DNT fix

This commit is contained in:
Joshua Hahn committed 2020-08-22 18:26:29 +02:00
1 parent 59f68b8395
commit 6eab94dc4c
2 files changed
+4 -2

No files matched your search

+3 -1
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 {