summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/inspector/front-end/ExtensionPanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/inspector/front-end/ExtensionPanel.js')
-rw-r--r--Source/WebCore/inspector/front-end/ExtensionPanel.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebCore/inspector/front-end/ExtensionPanel.js b/Source/WebCore/inspector/front-end/ExtensionPanel.js
index 142b8c1..4249b2c 100644
--- a/Source/WebCore/inspector/front-end/ExtensionPanel.js
+++ b/Source/WebCore/inspector/front-end/ExtensionPanel.js
@@ -98,9 +98,10 @@ WebInspector.ExtensionWatchSidebarPane.prototype = {
RuntimeAgent.evaluate(expression, "extension-watch", false, this._onEvaluate.bind(this, title));
},
- _onEvaluate: function(title, result)
+ _onEvaluate: function(title, error, result)
{
- this._setObject(WebInspector.RemoteObject.fromPayload(result), title);
+ if (!error)
+ this._setObject(WebInspector.RemoteObject.fromPayload(result), title);
},
_setObject: function(object, title)