Fix #247
This commit is contained in:
parent
56bcf92886
commit
c907adcb71
@ -14115,8 +14115,10 @@
|
||||
if (g.VIEW === 'thread') {
|
||||
g.THREADID = +pathname[3];
|
||||
}
|
||||
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD)) {
|
||||
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD.ID)) {
|
||||
g.TYPE = 'nsfw';
|
||||
} else {
|
||||
g.TYPE = 'sfw';
|
||||
}
|
||||
$.extend(Themes, Conf["userThemes"]);
|
||||
$.extend(Mascots, Conf["userMascots"]);
|
||||
|
||||
@ -14134,8 +14134,10 @@
|
||||
if (g.VIEW === 'thread') {
|
||||
g.THREADID = +pathname[3];
|
||||
}
|
||||
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD)) {
|
||||
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD.ID)) {
|
||||
g.TYPE = 'nsfw';
|
||||
} else {
|
||||
g.TYPE = 'sfw';
|
||||
}
|
||||
$.extend(Themes, Conf["userThemes"]);
|
||||
$.extend(Mascots, Conf["userMascots"]);
|
||||
|
||||
@ -14118,8 +14118,10 @@
|
||||
if (g.VIEW === 'thread') {
|
||||
g.THREADID = +pathname[3];
|
||||
}
|
||||
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD)) {
|
||||
if (['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains(g.BOARD.ID)) {
|
||||
g.TYPE = 'nsfw';
|
||||
} else {
|
||||
g.TYPE = 'sfw';
|
||||
}
|
||||
$.extend(Themes, Conf["userThemes"]);
|
||||
$.extend(Mascots, Conf["userMascots"]);
|
||||
|
||||
@ -44,8 +44,10 @@ Main =
|
||||
g.THREADID = +pathname[3]
|
||||
|
||||
# Check if the current board we're on is SFW or not, so we can handle options that need to know that.
|
||||
if ['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains g.BOARD
|
||||
if ['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains g.BOARD.ID
|
||||
g.TYPE = 'nsfw'
|
||||
else
|
||||
g.TYPE = 'sfw'
|
||||
|
||||
$.extend Themes, Conf["userThemes"]
|
||||
$.extend Mascots, Conf["userMascots"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user