code: function tabChanged() {
      var url = getCanonicalUrl(tabs.activeTab.url);
      widget.port.emit('update', {
        'enabled': url.length ? isInjectionEnabledForUrl(url) : false
      });
    }
docs: Update the widget icon when the URL changes.