Created
December 30, 2015 09:07
-
-
Save harishvc/65d147d3231ee724db84 to your computer and use it in GitHub Desktop.
mapit - background.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//All content loaded in the Google Calendar browser tab! | |
chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) { | |
if (changeInfo.status == 'complete') { | |
chrome.tabs.query({active: true, currentWindow: true}, function(tabs){ | |
chrome.tabs.sendMessage(tabs[0].id, {action: "start"}, function(response) {}); | |
}); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment