mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Use atom.getCurrentWindow()
This commit is contained in:
@@ -121,8 +121,7 @@ class WindowEventHandler
|
||||
bindCommandToAction = (command, action) =>
|
||||
@subscribe $(document), command, (event) ->
|
||||
if event.target.webkitMatchesSelector('.native-key-bindings')
|
||||
webContents = require('remote').getCurrentWindow().webContents
|
||||
webContents[action]()
|
||||
atom.getCurrentWindow().webContents[action]()
|
||||
true
|
||||
|
||||
bindCommandToAction('core:copy', 'copy')
|
||||
|
||||
Reference in New Issue
Block a user