Fix a few places using old style require
This commit is contained in:
parent
ce6a7c7d08
commit
852500e5fa
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
app = require 'app'
|
||||
url = require 'url'
|
||||
{app} = require 'electron'
|
||||
{EventEmitter} = require 'events'
|
||||
url = require 'url'
|
||||
|
||||
squirrelUpdate = require './squirrel-update-win'
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue