Fix a few places using old style require

This commit is contained in:
Cheng Zhao 2015-11-13 09:38:22 +08:00
parent ce6a7c7d08
commit 852500e5fa
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
app = require 'app'
url = require 'url'
{app} = require 'electron'
{EventEmitter} = require 'events'
url = require 'url'
squirrelUpdate = require './squirrel-update-win'

View file

@ -1,6 +1,6 @@
if process.platform is 'linux' and process.type is 'renderer'
{remote} = require 'electron'
# On Linux we could not access clipboard in renderer process.
module.exports = remote.require 'clipboard'
module.exports = remote.getBuiltin 'clipboard'
else
module.exports = process.atomBinding 'clipboard'