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'
|
{app} = require 'electron'
|
||||||
url = require 'url'
|
|
||||||
{EventEmitter} = require 'events'
|
{EventEmitter} = require 'events'
|
||||||
|
url = require 'url'
|
||||||
|
|
||||||
squirrelUpdate = require './squirrel-update-win'
|
squirrelUpdate = require './squirrel-update-win'
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
if process.platform is 'linux' and process.type is 'renderer'
|
if process.platform is 'linux' and process.type is 'renderer'
|
||||||
{remote} = require 'electron'
|
{remote} = require 'electron'
|
||||||
# On Linux we could not access clipboard in renderer process.
|
# On Linux we could not access clipboard in renderer process.
|
||||||
module.exports = remote.require 'clipboard'
|
module.exports = remote.getBuiltin 'clipboard'
|
||||||
else
|
else
|
||||||
module.exports = process.atomBinding 'clipboard'
|
module.exports = process.atomBinding 'clipboard'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue