From 6eab94dc4cd5ba3db7ed9e14e769816d144e6080 Mon Sep 17 00:00:00 2001 From: Joshua Hahn Date: Sat, 22 Aug 2020 18:26:29 +0200 Subject: [PATCH] aaand another DNT fix --- lib/web.js | 4 +++- public/umami.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/web.js b/lib/web.js index 8f1e26d5..3cf942ab 100644 --- a/lib/web.js +++ b/lib/web.js @@ -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 { diff --git a/public/umami.js b/public/umami.js index ce6e7e5e..66d5766a 100644 --- a/public/umami.js +++ b/public/umami.js @@ -1 +1 @@ -!function(){"use strict";function e(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var t=setTimeout;function n(e){return Boolean(e&&void 0!==e.length)}function r(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}a(t.promise,r)}else(1===e._state?a:u)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void f((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){u(e,t)}var r,i}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t