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; }