Skip to content

Commit

Permalink
fix: Remove library call
Browse files Browse the repository at this point in the history
Missing library function replaced with equivalent functionality
  • Loading branch information
genolve committed Aug 17, 2019
1 parent e7e710e commit f985964
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wikiquote-api-gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,9 @@ https://en.wikiquote.org/w/api.php?format=json&action=query&generator=categoryme
zt=infoA[ii].title;
extrastyle="";
if(optionsO && optionsO.fontsizekey!=null && infoA[ii].categoryinfo!=null){
zsize = vpr.setVal(10+infoA[ii].categoryinfo[optionsO.fontsizekey]*optionsO.fontscalerange,0,10,35,vpr.setValMode.LIMIT);
zsize = 10+infoA[ii].categoryinfo[optionsO.fontsizekey]*optionsO.fontscalerange;
if(size > 35)
size = 35;
extrastyle=' style="font-size:'+zsize+'px;" ';
}
vpr.vprint("wiki","mkPageLinks:"+zt+" type:"+typeof(infoA[ii])+" have pageid:"+infoA[ii].pageid);
Expand Down

0 comments on commit f985964

Please sign in to comment.