extension-section-1-background-1
function disableIcon(tabId) { | |
chrome.browserAction.setIcon({ | |
tabId: tabId, | |
path: { | |
'16': '/images/icon16-gray.png', | |
'32': '/images/icon32-gray.png', | |
}, | |
}) | |
chrome.browserAction.setPopup({ | |
tabId, | |
popup: '', | |
}) | |
} | |
function enableIcon(tabId) { | |
chrome.browserAction.setIcon({ | |
tabId: tabId, | |
path: { | |
'16': '/images/icon16.png', | |
'32': '/images/icon32.png', | |
}, | |
}) | |
chrome.browserAction.setPopup({ | |
tabId, | |
popup: 'popup.html', | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment