accela_search/background.js

8 lines
No EOL
250 B
JavaScript

chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
if (changeInfo.status === 'complete' && tab.url.includes('accela.com')) {
chrome.scripting.executeScript({
target: {tabId: tabId},
files: ['content.js']
});
}
});