File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11const boardUrl = 'trello.com/b/' ;
22
3+ // Declarative content script injection doesn't work on push state (i.e. when
4+ // navigating from trello.com/username/boards to a specific board page), so we
5+ // re-inject content scripts programmatically onHistoryStateUpdated.
36chrome . webNavigation . onHistoryStateUpdated . addListener ( function ( details ) {
47 // Match Trello board pages only
58 const match = details . url . includes ( boardUrl ) ;
Original file line number Diff line number Diff line change 1313 " js/background.js"
1414 ]
1515 },
16+ "content_scripts" : [{
17+ "matches" : [" *://trello.com/b/*" ],
18+ "css" : [" css/layout.css" ],
19+ "js" : [" js/init.js" ]
20+ }],
1621 "permissions" : [
1722 " *://trello.com/b/*" ,
1823 " declarativeContent" ,
You can’t perform that action at this time.
0 commit comments