diff --git a/chrome/chromeFiles/content/scholar/xpcom/notifier.js b/chrome/chromeFiles/content/scholar/xpcom/notifier.js index cb5bb94a6..ee2f0e17b 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/notifier.js +++ b/chrome/chromeFiles/content/scholar/xpcom/notifier.js @@ -11,6 +11,7 @@ Scholar.Notifier = new function(){ this.trigger = trigger; this.disable = disable; this.enable = enable; + this.isEnabled = isEnabled; function registerColumnTree(ref){ return _register('columnTree', ref); @@ -77,6 +78,11 @@ Scholar.Notifier = new function(){ } + function isEnabled(){ + return !_disabled; + } + + function _register(type, ref){ var len = 2; var tries = 10;