Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from Bowery-RES/web-2336-amplitude-metrics
Browse files Browse the repository at this point in the history
Fix issue
  • Loading branch information
ArtemySinitsa authored Dec 24, 2019
2 parents c31f354 + 517d5cc commit 63d99b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import { EVENTS } from '../lib/constants'

async function activationHandler({ tabId }) {
const tab = await chrome.tabs.get(tabId);
if(!tab.active){
return
}

const url = tab.url || tab.pendingUrl;
if (url.match(/https:\/\/streeteasy.com\/building\/|https:\/\/streeteasy.com\/rental\//)) {
await chrome.browserAction.setIcon({ path: 'bowery_icon.png' });
Expand Down

0 comments on commit 63d99b9

Please sign in to comment.