Skip to content

Commit

Permalink
fix geeeeeeeeek#319 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lslvxy committed Aug 22, 2016
1 parent 45c39b8 commit 3139a86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/windows/controllers/wechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class WeChatWindow {
event.preventDefault();
shell.openExternal(new MessageHandler().handleRedirectMessage(url));
});
this.wechatWindow.webContents.on('will-navigate', (event, url) => {
if (url.endsWith('/fake')) event.preventDefault();
});
}

loadURL(url) {
Expand Down

0 comments on commit 3139a86

Please sign in to comment.