Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Update main.js (#1366)

Cette révision appartient à :
kilo 2017-08-12 08:52:54 +02:00 révisé par ewhal
Parent 99f93a83be
révision 645a711222

Voir le fichier

@ -154,6 +154,9 @@ function startupCode() {
if(!UserTheme.includes("tomorrow"))
UserTheme[1] = "tomorrow"
//If none of the theme are tomorrow, which happens if the user is on dark mode (with theme2 on g.css) and that he switches to classic or g.css in settings, we set the second one as tomorrow
else if(UserTheme[0] == UserTheme[1])
UserTheme[1] = "g"
//If both theme are tomorrow, which happens if theme2 is on tomorrow (always is by default) and that the user sets tomorrow as his theme through settings page, we set secondary theme to g.css
}
else {
if(UserTheme[0] == UserTheme[1])