projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8bf798
)
Only call getDevTools for windows that have devtools.
author
Cheng Zhao
<zcbenz@gmail.com>
Thu, 24 Apr 2014 04:04:23 +0000
(12:04 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Thu, 24 Apr 2014 04:04:23 +0000
(12:04 +0800)
atom/browser/api/lib/browser-window.coffee
patch
|
blob
|
history
diff --git
a/atom/browser/api/lib/browser-window.coffee
b/atom/browser/api/lib/browser-window.coffee
index
94ca508
..
18dacbf
100644
(file)
--- a/
atom/browser/api/lib/browser-window.coffee
+++ b/
atom/browser/api/lib/browser-window.coffee
@@
-57,7
+57,7
@@
BrowserWindow.fromProcessIdAndRoutingId = (processId, routingId) ->
BrowserWindow.fromDevTools = (processId, routingId) ->
windows = BrowserWindow.getAllWindows()
- for window in windows
+ for window in windows
when window.isDevToolsOpened()
devtools = window.getDevTools()
return window if devtools.processId == processId and
devtools.routingId == routingId