Fix executeJavaScriptInDevTools

The joy of Atom and Electron having identically-named functions
This commit is contained in:
Wliu
2015-11-17 23:11:55 -05:00
parent 6cd480b37e
commit 6c811433cf
2 changed files with 5 additions and 5 deletions

View File

@@ -671,7 +671,7 @@ class AtomEnvironment extends Model
if openDevTools
@openDevTools()
@webContents.executeJavaScriptInDevTools('DevToolsAPI.showConsole()')
@executeJavaScriptInDevTools('DevToolsAPI.showConsole()')
@emitter.emit 'did-throw-error', {message, url, line, column, originalError}
@@ -729,7 +729,7 @@ class AtomEnvironment extends Model
@applicationDelegate.toggleWindowDevTools()
# Extended: Execute code in dev tools.
webContents.executeJavaScriptInDevTools: (code) ->
executeJavaScriptInDevTools: (code) ->
@applicationDelegate.executeJavaScriptInWindowDevTools(code)
###