Skip to content

Commit

Permalink
Allow navigation to alternate messenger domains (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhharris authored and sindresorhus committed Mar 31, 2019
1 parent 06d78ab commit 1ee6b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ function createMainWindow(): BrowserWindow {
webContents.on('will-navigate', (event, url) => {
const isMessengerDotCom = (url: string): boolean => {
const {hostname} = new URL(url);
return hostname === 'www.messenger.com';
return hostname.endsWith('.messenger.com');
};

const isTwoFactorAuth = (url: string): boolean => {
Expand Down

0 comments on commit 1ee6b4c

Please sign in to comment.