extensions/wtf-injector-firefox/lib/main.js
function tabChanged() {
    var url = getCanonicalUrl(tabs.activeTab.url);
    widget.port.emit('update', {
      'enabled': url.length ? isInjectionEnabledForUrl(url) : false
    });
  }
function tabChanged() {
    var url = getCanonicalUrl(tabs.activeTab.url);
    widget.port.emit('update', {
      'enabled': url.length ? isInjectionEnabledForUrl(url) : false
    });
  }
function tabChanged ( ) { var url = getCanonicalUrl ( tabs . activeTab . url ) ; widget . port . emit ( 'update' , { 'enabled' : url . length ? isInjectionEnabledForUrl ( url ) : false } ) ; }
Update the widget icon when the URL changes.
Update the widget icon when the URL changes .