Fix some issues causing Navigation functions to fail.
Conflicts: builds/4chan-X.user.js builds/crx/script.js src/General/Main.coffee
This commit is contained in:
parent
298bed6336
commit
65671b2e2a
@ -274,6 +274,7 @@ Index =
|
||||
return
|
||||
|
||||
Navigate.title()
|
||||
|
||||
Index.board = "#{g.BOARD}"
|
||||
|
||||
try
|
||||
|
||||
@ -113,11 +113,10 @@ Navigate =
|
||||
|
||||
QR.flagsInput()
|
||||
|
||||
$.cache '//a.4cdn.org/boards.json', ({target}) ->
|
||||
return unless target.status is 200
|
||||
|
||||
$.cache '//a.4cdn.org/boards.json', ->
|
||||
try
|
||||
for aboard in target.response.boards when aboard.board is boardID
|
||||
return unless @status is 200
|
||||
for aboard in @response.boards when aboard.board is boardID
|
||||
board = aboard
|
||||
break
|
||||
|
||||
@ -126,7 +125,6 @@ Navigate =
|
||||
message: "Navigation failed to update board name."
|
||||
error: err
|
||||
]
|
||||
return false
|
||||
|
||||
return unless board
|
||||
Navigate.updateTitle board
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user