Skip to content

Commit 9130c28

Browse files
committed
Add comments
1 parent febbc71 commit 9130c28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/background.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ chrome.webNavigation.onHistoryStateUpdated.addListener(function(details) {
1818
}
1919
});
2020

21+
// Set function to trigger on page action click
2122
chrome.pageAction.onClicked.addListener(function(tab) {
2223
chrome.tabs.executeScript(null, {
2324
code: 'toggleLayout()'
2425
});
2526
});
2627

28+
// Enable page action trigger on Trello board pages only
2729
chrome.runtime.onInstalled.addListener(function(details) {
2830
chrome.declarativeContent.onPageChanged.removeRules(undefined, function() {
2931
chrome.declarativeContent.onPageChanged.addRules([{

0 commit comments

Comments
 (0)