Commit 05491d3f51c3844b64aa3a2b03bfd8692581b412
fix external link click catch
mix irving committed on 3/31/2017, 11:09:20 AMParent: 9bc144cce7f943481bbdf418bd837395b337c712
Files changed
main/html/app.js | changed |
main/html/app.js | ||
---|---|---|
@@ -62,9 +62,9 @@ | ||
62 | 62 | api.main.sync.catchKeyboardShortcut(window, { tabs, search }) |
63 | 63 | |
64 | 64 | // Catch link clicks |
65 | 65 | api.main.async.catchLinkClick(App, (link, { ctrlKey: openBackground, isExternal }) => { |
66 | - if (isExternal) api.main.html.externalConfirm(link) | |
66 | + if (isExternal) return api.main.html.externalConfirm(link) | |
67 | 67 | |
68 | 68 | if (tabs.has(link)) tabs.select(link) |
69 | 69 | else { |
70 | 70 | const changeTab = !openBackground |
Built with git-ssb-web