// Add a listener so background knows when a tab has changed.
// You need 'tabs' persmission, that's why we added it to manifest file.
chrome.tabs.onUpdated.addListener(showIntercomAction);


function showIntercomAction(tabId, changeInfo, tab) {
  if (tab.url.indexOf('actitime.distech-controls') > -1) {
    // Show icon for page action in the current tab.
    chrome.pageAction.show(tabId);
  }
};



@@ -1,139 +1,14 @@
 //
- Add a listener so background knows when a tab has changed.%0D%0A// You need 'tabs' persmission, that's why we added it to manifest file.
+Global%0D%0A
 %0D%0Ach

Update background.js