mirror of
https://github.com/electron/electron.git
synced 2026-01-24 23:08:10 -05:00
Fix a few places using old style require
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user