mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
Use atom.getCurrentWindow()
This commit is contained in:
parent
4091fa9e78
commit
a13e002079
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user