-
-
Save atmoner/1678fe4f5b3b0d8d862ba311ed6771a9 to your computer and use it in GitHub Desktop.
ELECTRON: Open link in external default OS browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('body').on('click', '#messages-view a', (event) => { | |
event.preventDefault(); | |
let link = event.target.href; | |
require("electron").shell.openExternal(link); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment