Difference between revisions of "Widget:SideBarPic"

From Moegirlpedia
Jump to: navigation, search
 
Line 24: Line 24:
 
             try {
 
             try {
 
                 const lazyload = new Image();
 
                 const lazyload = new Image();
                 const url = new mw.Uri(img.dataset.src);
+
                 const url = new mw.Uri(img.dataset.src || img.src);
 
                 if (url.host.endsWith(".moegirl.org")) {
 
                 if (url.host.endsWith(".moegirl.org")) {
 
                     url.host += ".cn";
 
                     url.host += ".cn";

Latest revision as of 05:20, 16 August 2021

用来给{{替换侧边栏底图}}更好的体验效果的,作者User:AnnAngela