...try this?

This commit is contained in:
Wliu
2015-11-19 18:20:51 -05:00
parent f6328fb511
commit 50a42af9fd

View File

@@ -72,7 +72,8 @@ class ApplicationDelegate
remote.getCurrentWindow().toggleDevTools()
executeJavaScriptInWindowDevTools: (code) ->
remote.getCurrentWindow().webContents.executeJavaScriptInDevTools(code)
webContents = remote.getCurrentWindow.webContents
webContents.executeJavaScript(code)
setWindowDocumentEdited: (edited) ->
ipc.send("call-window-method", "setDocumentEdited", edited)