Skip to content

Commit

Permalink
Merge pull request #328 from BeeeQueue/patch-1
Browse files Browse the repository at this point in the history
Allow Tracking From Electron Applications
  • Loading branch information
LKaemmerling authored Mar 26, 2022
2 parents a42c66f + 6eeb894 commit ba86af2
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 ba86af2

Please sign in to comment.