]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't include routing ID in WebContents's ID
authorCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jun 2015 08:09:34 +0000 (16:09 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 23 Jun 2015 08:09:34 +0000 (16:09 +0800)
atom/browser/api/lib/web-contents.coffee

index 8855b6d35f5fedd86236c1c50428c9e07872511d..67f106f6bb86eea1815f1e8946c95093337556a1 100644 (file)
@@ -25,7 +25,7 @@ wrapWebContents = (webContents) ->
       webContents.once 'did-finish-load', @_executeJavaScript.bind(this, code)
 
   # The processId and routingId and identify a webContents.
-  webContents.getId = -> "#{@getProcessId()}-#{@getRoutingId()}"
+  webContents.getId = -> @getProcessId()
   webContents.equal = (other) -> @getId() is other.getId()
 
   # The navigation controller.