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

Commit

Permalink
Open external URL using openExternal
Browse files Browse the repository at this point in the history
  • Loading branch information
dalinaum committed Jun 24, 2015
1 parent 6f7deff commit 9ca8528
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
@@ -1,2 +1,3 @@
# irccloud
Mac App: An Electron wrapper for irccloud.
# IRCCloud

Mac App for IRCCloud. (An Electron wrapper for IRCCloud.)
7 changes: 6 additions & 1 deletion main.js
Expand Up @@ -14,8 +14,13 @@ app.on('window-all-closed', function () {
app.on('ready', function () {
mainWindow = new BrowserWindow({width: 920, height:700});
mainWindow.loadUrl('https://www.irccloud.com');
// mainWindow.openDevTools();

mainWindow.on('closed', function () {
mainWindow = null;
});

mainWindow.on('will-navigate', function (event, url) {
event.preventDefault();
require('shell').openExternal(url);
});
});
4 changes: 2 additions & 2 deletions package.json
@@ -1,7 +1,7 @@
{
"private": true,
"productName": "Irccloud",
"version": "0.1.0",
"productName": "IRCCloud",
"version": "0.3.0",
"author": {
"name": "LYK",
"email": "dalinaum@gmail.com"
Expand Down

0 comments on commit 9ca8528

Please sign in to comment.