Index: third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js b/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js |
index fb17722e447e65aeebede7aef31f5979e108a44a..8acac08648a1363f774bb89bdb096f150a20fbc4 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js |
+++ b/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js |
@@ -449,15 +449,15 @@ WebInspector.InspectorFrontendHostStub.prototype = { |
/** |
* @type {!InspectorFrontendHostAPI} |
*/ |
-window.InspectorFrontendHost = window.InspectorFrontendHost || null; |
- |
+var InspectorFrontendHost = window.InspectorFrontendHost || null; |
+window.InspectorFrontendHost = InspectorFrontendHost; |
(function(){ |
function initializeInspectorFrontendHost() |
{ |
if (!InspectorFrontendHost) { |
// Instantiate stub for web-hosted mode if necessary. |
- InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub(); |
+ window.InspectorFrontendHost = InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub(); |
} else { |
// Otherwise add stubs for missing methods that are declared in the interface. |
var proto = WebInspector.InspectorFrontendHostStub.prototype; |