Index: tracing/tracing/ui/extras/about_tracing/inspector_connection.html |
diff --git a/tracing/tracing/ui/extras/about_tracing/inspector_connection.html b/tracing/tracing/ui/extras/about_tracing/inspector_connection.html |
index fbc7a7ac3f963eebc06352193c45a9be63e4bc67..21e3ea5183d04621bb5c04dc03ed7be4a4e44377 100644 |
--- a/tracing/tracing/ui/extras/about_tracing/inspector_connection.html |
+++ b/tracing/tracing/ui/extras/about_tracing/inspector_connection.html |
@@ -31,8 +31,9 @@ tr.exportTo('tr.ui.e.about_tracing', function() { |
* @constructor |
*/ |
function InspectorConnection() { |
- if (InspectorConnection.instance) |
+ if (InspectorConnection.instance) { |
throw new Error('Singleton'); |
+ } |
this.nextRequestId_ = 1; |
this.pendingRequestResolversId_ = {}; |
@@ -110,10 +111,11 @@ tr.exportTo('tr.ui.e.about_tracing', function() { |
} |
}; |
- if (window.DevToolsHost) |
+ if (window.DevToolsHost) { |
InspectorConnection.instance = new InspectorConnection(); |
- else |
+ } else { |
InspectorConnection.instance = undefined; |
+ } |
return { |
InspectorConnection, |