Fix Electron deprecations

This commit is contained in:
Wliu
2015-11-17 21:16:09 -05:00
parent 74c0e79986
commit 6cd480b37e
22 changed files with 28 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
_ = require 'underscore-plus'
ipc = require 'ipc'
ipc = require 'ipc-main'
remote = require 'remote'
shell = require 'shell'
webFrame = require 'web-frame'
@@ -72,7 +72,7 @@ class ApplicationDelegate
remote.getCurrentWindow().toggleDevTools()
executeJavaScriptInWindowDevTools: (code) ->
remote.getCurrentWindow().executeJavaScriptInDevTools(code)
remote.getCurrentWindow().webContents.executeJavaScriptInDevTools(code)
setWindowDocumentEdited: (edited) ->
ipc.send("call-window-method", "setDocumentEdited", edited)