Add a check for SFW status before we go stampeding all over it.

Lets not do more than we have to do, m'kay?
This commit is contained in:
Zixaphir 2014-01-11 11:04:14 -07:00
parent d8bc0616e8
commit 5222edafd4
3 changed files with 9 additions and 3 deletions

View File

@ -12030,7 +12030,9 @@
return;
}
Navigate.updateTitle(board);
sfw = !!board.ws_board;
if (Favicon.sfw === (sfw = !!board.ws_board)) {
return;
}
findStyle = function(_arg) {
var base, style, type;
type = _arg[0], base = _arg[1];

View File

@ -12019,7 +12019,9 @@
return;
}
Navigate.updateTitle(board);
sfw = !!board.ws_board;
if (Favicon.sfw === (sfw = !!board.ws_board)) {
return;
}
findStyle = function(_arg) {
var base, style, type;
type = _arg[0], base = _arg[1];

View File

@ -135,7 +135,9 @@ Navigate =
return unless board
Navigate.updateTitle board
sfw = !!board.ws_board
return if Favicon.sfw is sfw = !!board.ws_board # Board SFW status hasn't changed
findStyle = ([type, base]) ->
style = d.cookie.match new RegExp "#{type}\_style\=([^;]+)"
return [(if style then style[1] else base), "#{type}_style"]