mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix executeJavaScriptInDevTools
The joy of Atom and Electron having identically-named functions
This commit is contained in:
@@ -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)
|
||||
|
||||
###
|
||||
|
||||
Reference in New Issue
Block a user