Limit Chrome Extension Permissions To Certain Domain
I have a chrome extension that I have running only on a certain domain using 'matches':[] in my manifest.json. However, because I need the 'webNavigation' permission to run the lis
Solution 1:
Try this
chrome.webNavigation.onHistoryStateUpdated.addListener(function(details) {
chrome.tabs.executeScript(null,{file:"content.js"});
} ,{
url: {
hostContains: 'foo.com'
}
});
Post a Comment for "Limit Chrome Extension Permissions To Certain Domain"