Check window.external before checking msTrackingProtectionEnabled

This commit is contained in:
Minku Lee 2020-08-23 19:06:16 +09:00
parent e7f83c084e
commit 679a2b0460

View File

@ -52,7 +52,7 @@ export const doNotTrack = () => {
window.doNotTrack || window.doNotTrack ||
navigator.doNotTrack || navigator.doNotTrack ||
navigator.msDoNotTrack || navigator.msDoNotTrack ||
'msTrackingProtectionEnabled' in window.external (window.external && 'msTrackingProtectionEnabled' in window.external)
) { ) {
if ( if (
window.doNotTrack == '1' || window.doNotTrack == '1' ||