Skip to content

Commit

Permalink
Fixed missing os dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
geekgonecrazy committed Oct 7, 2016
1 parent 4e76270 commit 920d373
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// It doesn't have any windows which you can see on screen, but we can open
// window from here.

import os from 'os';
import { app, BrowserWindow, ipcMain } from 'electron';
import devHelper from './vendor/electron_boilerplate/dev_helper';
import windowStateKeeper from './vendor/electron_boilerplate/window_state';
Expand Down Expand Up @@ -112,11 +113,11 @@ app.on('ready', function () {
});

if(useToaster) {

toaster.init(mainWindow);

ipcMain.on('notification-shim', (e, msg) => {

mainWindow.webContents.executeJavaScript(`
require('electron').ipcRenderer.send('electron-toaster-message', {
title: '${msg.title}',
Expand Down

0 comments on commit 920d373

Please sign in to comment.