Open a link in browser for Electron and browser.
$ npm install --save electron-open-link-in-browser
<script type="text/javascript" src="build/electron-open-link-in-browser.js"></script>
<a
href="https://github.com/lyrictenor/electron-triage-for-github"
onClick="electronOpenLinkInBrowser();"
>
github.com/lyrictenor/electron-triage-for-github
</a>
<button
type="button"
onclick="electronOpenLinkInBrowser('http://example.com');"
>
Example.com
</button>
var electronOpenLinkInBrowser = require("electron-open-link-in-browser");
<a
href="https://github.com/lyrictenor/electron-triage-for-github"
onClick={electronOpenLinkInBrowser.bind(this)}
>
github.com/lyrictenor/electron-triage-for-github
</a>
<button
type="button"
onClick={electronOpenLinkInBrowser.bind(this, "http://example.com")}
>
Example.com
</button>
Jump to the href property.
Optional
Type: string
Jump to url.
MIT © sanemat