Skip to content

Commit

Permalink
Update tracker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
beeequeue authored Mar 18, 2021
1 parent 69baac5 commit 6eeb894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/js/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6eeb894

Please sign in to comment.