Index: Source/devtools/front_end/timeline/TimelinePowerOverview.js |
diff --git a/Source/devtools/front_end/timeline/TimelinePowerOverview.js b/Source/devtools/front_end/timeline/TimelinePowerOverview.js |
index dc7ba87f7f5aa1d092c6db3c1fe2a5662dfbfcb1..89f009ba56c8b62899ab5ff4970106854622a647 100644 |
--- a/Source/devtools/front_end/timeline/TimelinePowerOverview.js |
+++ b/Source/devtools/front_end/timeline/TimelinePowerOverview.js |
@@ -108,13 +108,13 @@ WebInspector.TimelinePowerOverview.prototype = { |
timelineStarted: function() |
{ |
- if (WebInspector.targetManager.activeTarget().hasCapability(WebInspector.Target.Capabilities.canProfilePower)) |
+ if (WebInspector.targetManager.mainTarget().hasCapability(WebInspector.Target.Capabilities.canProfilePower)) |
WebInspector.powerProfiler.startProfile(); |
}, |
timelineStopped: function() |
{ |
- if (WebInspector.targetManager.activeTarget().hasCapability(WebInspector.Target.Capabilities.canProfilePower)) |
+ if (WebInspector.targetManager.mainTarget().hasCapability(WebInspector.Target.Capabilities.canProfilePower)) |
WebInspector.powerProfiler.stopProfile(); |
}, |