diff --git a/extension/chrome/content/spa_eye/spa_eyePanel.js b/extension/chrome/content/spa_eye/spa_eyePanel.js index ba57fa9..1c8d25c 100644 --- a/extension/chrome/content/spa_eye/spa_eyePanel.js +++ b/extension/chrome/content/spa_eye/spa_eyePanel.js @@ -139,8 +139,25 @@ define([ var scriptPanel = this.context.getPanel('script'), hooked = this.context.spa_eyeObj.hooked(); - var warn = !(hooked && scriptPanel && !scriptPanel.showWarning()); - return warn ? this.showNotHooked() : false; + if (!(hooked && scriptPanel && !scriptPanel.showWarning())) { + return this.showNotHooked(); + } else { + try { + var v = Firebug.getVersion().split('.'); + if (parseInt(v[0], 10) === 1 && parseInt(v[1], 10) < 11) { + return this.showFirebugUpgrade(); + } + } catch (e) {} + } + return false; + }, + + showFirebugUpgrade:function () { + var args = { + pageTitle:Locale.$STR("spa_eye.warning.upgrade_firebug"), + suggestion:Locale.$STR("spa_eye.suggestion.upgrade_firebug") + }; + return this.WarningRep.tag.replace(args, this.panelNode); }, showNotHooked:function () { diff --git a/extension/chrome/locale/en-US/spa_eye.properties b/extension/chrome/locale/en-US/spa_eye.properties index e85fa40..28b0f9b 100644 --- a/extension/chrome/locale/en-US/spa_eye.properties +++ b/extension/chrome/locale/en-US/spa_eye.properties @@ -43,4 +43,5 @@ spa_eye.logs.noerror=No error recorded during introspection so far. spa_eye.warning.inactive_during_page_load=Not recognized as a Backbone application or Backbone Eye was inactive during page load. spa_eye.suggestion.inactive_during_page_load2=Reload to activate Backbone Eye. Please ensure that the Script panel is enabled too. - +spa_eye.warning.upgrade_firebug=Spa-eye is not supported with this firebug version. +spa_eye.suggestion.upgrade_firebug=Please upgrade your firebug version to latest version.