Fix SFW/NSFW themes.

This commit is contained in:
Zixaphir 2013-04-11 14:54:44 -07:00
parent 41c2300263
commit bd688515e9
3 changed files with 13 additions and 4 deletions

View File

@ -295,6 +295,8 @@
embedWidth: 640,
embedHeight: 390,
theme: 'Yotsuba B',
'theme_sfw': 'Yotsuba B',
'theme_nsfw': 'Yotsuba',
mascot: ''
};
@ -12831,6 +12833,9 @@
} else {
g.MASCOTSTRING = "Enabled Mascots";
}
if (Conf["NSFW/SFW Themes"]) {
Conf["theme"] = Conf["theme_" + g.TYPE];
}
switch (location.hostname) {
case 'sys.4chan.org':
Report.init();

View File

@ -897,7 +897,9 @@ box-shadow: inset 2px 2px 2px rgba(0,0,0,0.2);
]
'Interval': 30
embedWidth: 640
embedWidth: 640
embedHeight: 390
theme : 'Yotsuba B'
theme : 'Yotsuba B'
'theme_sfw': 'Yotsuba B'
'theme_nsfw': 'Yotsuba'
mascot : ''

View File

@ -334,8 +334,7 @@ Main =
if ['b', 'd', 'e', 'gif', 'h', 'hc', 'hm', 'hr', 'pol', 'r', 'r9k', 'rs', 's', 'soc', 't', 'u', 'y'].contains g.BOARD
g.TYPE = 'nsfw'
$.extend Themes, Conf["userThemes"]
$.extend Themes, Conf["userThemes"]
$.extend Mascots, Conf["userMascots"]
if Conf["NSFW/SFW Mascots"]
@ -343,6 +342,9 @@ Main =
else
g.MASCOTSTRING = "Enabled Mascots"
if Conf["NSFW/SFW Themes"]
Conf["theme"] = Conf["theme_#{g.TYPE}"]
switch location.hostname
when 'sys.4chan.org'
Report.init()