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