Fix #1363.
This commit is contained in:
parent
5e8b5ea7a1
commit
1e621a7fe4
@ -225,12 +225,12 @@ Header =
|
||||
setCatalogLinks: (useCatalog) ->
|
||||
Header.catalogToggler.checked = useCatalog
|
||||
as = $$ [
|
||||
'#board-list a[href*="boards.4chan.org"]'
|
||||
'#boardNavDesktop a[href*="boards.4chan.org"]'
|
||||
'#boardNavDesktopFoot a[href*="boards.4chan.org"]'
|
||||
'#board-list a'
|
||||
'#boardNavDesktop a'
|
||||
'#boardNavDesktopFoot a'
|
||||
].join ', '
|
||||
path = if useCatalog then 'catalog' else ''
|
||||
for a in as when not a.dataset.only
|
||||
for a in as when a.hostname is 'boards.4chan.org' and not a.dataset.only
|
||||
a.pathname = "/#{a.pathname.split('/')[1]}/#{path}"
|
||||
return
|
||||
toggleCatalogLinks: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user