Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Open all HTTP links with an external browser, not in electron #48

Merged
merged 1 commit into from
Oct 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions HCCGo/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
$.material.init();
$.material.input();
//process.on("uncaughtException", function(e) { //console.log(e); });
var shell = require('electron').shell;
//open links externally by default
$(document).on('click', 'a[href^="http"]', function(event) {
event.preventDefault();
shell.openExternal(this.href);
});
</script>

</head>
Expand Down