From 3139a8681057fe59a5f7b3ed94d6b088e9a107ce Mon Sep 17 00:00:00 2001 From: lise Date: Mon, 22 Aug 2016 11:05:54 +0800 Subject: [PATCH] fix #319 bug --- src/windows/controllers/wechat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/windows/controllers/wechat.js b/src/windows/controllers/wechat.js index 1b41a7af..ef131f0c 100644 --- a/src/windows/controllers/wechat.js +++ b/src/windows/controllers/wechat.js @@ -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) {