Skip to content

Commit

Permalink
Fix removed 'app' module in Electron v1.0.0
Browse files Browse the repository at this point in the history
Electron v1.0.0 was out and deprecated modules are removed.
I fixed requiring deprecated module.

electron/electron#5373
  • Loading branch information
rhysd committed May 11, 2016
1 parent 17e04a0 commit 00026bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.js
@@ -1,14 +1,15 @@
'use strict';

var app = require('app');
var electron = require('electron');
var app = electron.app;
var jsonfile = require('jsonfile');
var path = require('path');
var mkdirp = require('mkdirp');
var objectAssign = require('object-assign');
var deepEqual = require('deep-equal');

module.exports = function (options) {
var screen = require('screen');
var screen = electron.screen;
var state;
var winRef;
var stateChangeTimer;
Expand Down

0 comments on commit 00026bb

Please sign in to comment.