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

Commit

Permalink
Merge pull request #48 from djw8605/add_beta_text
Browse files Browse the repository at this point in the history
Open all HTTP links with an external browser, not in electron
djw8605 authored Oct 21, 2016
2 parents d376359 + 99b7bbb commit edfaee0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HCCGo/app/index.html
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit edfaee0

Please sign in to comment.