Added icons

This commit is contained in:
2020-04-13 17:42:16 +03:00
parent 3f1cc437f4
commit 26d9856f83
6 changed files with 23 additions and 17 deletions

View File

@@ -1,15 +1,15 @@
chrome.runtime.onInstalled.addListener(function() {
chrome.storage.sync.set({isExtensionOn: true}, function() {
console.log('isExtensionOn: '+true);
});
chrome.storage.sync.set({isExtensionOn: true}, function() {
console.log('isExtensionOn: '+true);
});
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
chrome.declarativeContent.onPageChanged.addRules([{
conditions: [new chrome.declarativeContent.PageStateMatcher({
pageUrl: {hostEquals: 'vk.com'},
})
],
actions: [new chrome.declarativeContent.ShowPageAction()]
}]);
});
});
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
chrome.declarativeContent.onPageChanged.addRules([{
conditions: [new chrome.declarativeContent.PageStateMatcher({
pageUrl: {hostEquals: 'vk.com'},
})
],
actions: [new chrome.declarativeContent.ShowPageAction()]
}]);
});
});