From 679a2b0460a587b08cd4888c61d5cadeba87b9d1 Mon Sep 17 00:00:00 2001 From: Minku Lee Date: Sun, 23 Aug 2020 19:06:16 +0900 Subject: [PATCH] Check window.external before checking msTrackingProtectionEnabled --- lib/web.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web.js b/lib/web.js index 3cf942ab..04e4466c 100644 --- a/lib/web.js +++ b/lib/web.js @@ -52,7 +52,7 @@ export const doNotTrack = () => { window.doNotTrack || navigator.doNotTrack || navigator.msDoNotTrack || - 'msTrackingProtectionEnabled' in window.external + (window.external && 'msTrackingProtectionEnabled' in window.external) ) { if ( window.doNotTrack == '1' ||