Skip to content

Commit

Permalink
Disable Facebook link tracking
Browse files Browse the repository at this point in the history
Fixes #224.
  • Loading branch information
kevva committed Jun 8, 2017
1 parent 571eccb commit 173655d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';
const path = require('path');
const fs = require('fs');
const urlMod = require('url');
const electron = require('electron');
const electronLocalShortcut = require('electron-localshortcut');
const log = require('electron-log');
Expand Down Expand Up @@ -222,6 +223,10 @@ app.on('ready', () => {
e.newGuest = new electron.BrowserWindow(options);
}
} else {
if (url.includes('://l.messenger.com/l.php')) {
url = urlMod.parse(url, true).query.u;
}

electron.shell.openExternal(url);
}
});
Expand Down

0 comments on commit 173655d

Please sign in to comment.