Commit 00569595c67fa7ffb47acaaa102e08bef8a97b31
fix endless loading issue when clicking missing message
Matt McKegg committed on 10/19/2017, 12:07:16 AMParent: 8acd553f8fa30f4b8a87229695d165ff34d49efc
Files changed
main-window.js | changed |
main-window.js | ||
---|---|---|
@@ -135,10 +135,9 @@ | ||
135 | 135 | } else if (ref.isBlob(href)) { |
136 | 136 | electron.shell.openExternal(api.blob.sync.url(href)) |
137 | 137 | } else if (ref.isMsg(href)) { |
138 | 138 | getExternalHandler(href, (err, handler) => { |
139 | - if (err) throw err | |
140 | - if (handler) { | |
139 | + if (!err && handler) { | |
141 | 140 | handler(href) |
142 | 141 | } else { |
143 | 142 | api.app.navigate(href, anchor) |
144 | 143 | } |
Built with git-ssb-web