From 6eeb8943ee7bfcba8c2b116575a4482e105d6ba6 Mon Sep 17 00:00:00 2001 From: Adam Haglund Date: Thu, 18 Mar 2021 09:28:25 -0700 Subject: [PATCH] Update tracker.js --- assets/src/js/tracker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/src/js/tracker.js b/assets/src/js/tracker.js index 80605df1..23e96302 100644 --- a/assets/src/js/tracker.js +++ b/assets/src/js/tracker.js @@ -129,8 +129,8 @@ // parse request, use canonical if there is one let req = window.location; - // do not track if not served over HTTP or HTTPS (eg from local filesystem) - if(req.host === '') { + // do not track if not served over HTTP or HTTPS (eg from local filesystem) and we're not in an Electron app + if(req.host === '' && navigator.userAgent.indexOf("Electron") < 0) { return; }