Merge pull request #61 from premist/master

Check window.external before checking msTrackingProtectionEnabled
This commit is contained in:
Mike Cao 2020-08-23 12:04:58 -07:00 committed by GitHub
commit fd0c22c09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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' ||