cleaner return
This commit is contained in:
parent
4418a8fa45
commit
3d2fc98544
@ -10934,10 +10934,9 @@
|
||||
el = this.el;
|
||||
if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) {
|
||||
if (el) {
|
||||
return el.src = "";
|
||||
} else {
|
||||
return null;
|
||||
el.src = "";
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') {
|
||||
$.rmClass(doc, 'mascot-position-default');
|
||||
|
||||
@ -10928,10 +10928,9 @@
|
||||
el = this.el;
|
||||
if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) {
|
||||
if (el) {
|
||||
return el.src = "";
|
||||
} else {
|
||||
return null;
|
||||
el.src = "";
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') {
|
||||
$.rmClass(doc, 'mascot-position-default');
|
||||
|
||||
@ -10911,10 +10911,9 @@
|
||||
el = this.el;
|
||||
if (!Conf['Mascots'] || (Conf['Hide Mascots on Catalog'] && g.VIEW === 'catalog')) {
|
||||
if (el) {
|
||||
return el.src = "";
|
||||
} else {
|
||||
return null;
|
||||
el.src = "";
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (mascot.position === 'bottom' && Conf['Mascot Position'] === 'default') {
|
||||
$.rmClass(doc, 'mascot-position-default');
|
||||
|
||||
@ -12,7 +12,8 @@ MascotTools =
|
||||
el = @el
|
||||
|
||||
if !Conf['Mascots'] or (Conf['Hide Mascots on Catalog'] and g.VIEW is 'catalog')
|
||||
return if el then el.src = "" else null
|
||||
if el then el.src = ""
|
||||
return
|
||||
|
||||
if mascot.position is 'bottom' and Conf['Mascot Position'] is 'default'
|
||||
$.rmClass doc, 'mascot-position-default'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user