Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Open links on the default web browser.
Browse files Browse the repository at this point in the history
  • Loading branch information
dalinaum committed Jun 25, 2015
1 parent 28915e7 commit 2977b98
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
23 changes: 23 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,23 @@
# v0.6

* Open links on the default web browser.

# v0.5

* Add a menu and shortcuts.

# v0.4

* Reopen IRCCloud window when user has closed a window and then click on the docks' icon.

# v0.3

* Fix opening external URL.

# v0.2

* Remove a horizontal scrollbar.

# v0.1

* Initial release
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -4,4 +4,6 @@

Mac App for IRCCloud. (An Electron wrapper for IRCCloud.)

You can download [the latest release version](https://github.com/dalinaum/IRCCloud/releases/tag/v0.6).

![IRCCloud for Mac](https://cloud.githubusercontent.com/assets/145585/8322441/0c1814c4-1a70-11e5-8d88-4df80ce071c3.png)
6 changes: 6 additions & 0 deletions main.js
Expand Up @@ -262,6 +262,12 @@ function openMainWindow() {
mainWindow = null;
});

mainWindow.webContents.on('new-window',
function (event, url, frameName, disposition) {
event.preventDefault();
Shell.openExternal(url);
});

mainWindow.on('will-navigate', function (event, url) {
event.preventDefault();
Shell.openExternal(url);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"private": true,
"productName": "IRCCloud",
"version": "0.5.0",
"version": "0.6.0",
"author": {
"name": "LYK",
"email": "dalinaum@gmail.com"
Expand Down

0 comments on commit 2977b98

Please sign in to comment.