From f985964aaa551b687e1304bf8a6d0cafa6474583 Mon Sep 17 00:00:00 2001 From: genolve Date: Fri, 16 Aug 2019 22:38:10 -0400 Subject: [PATCH] fix: Remove library call Missing library function replaced with equivalent functionality --- wikiquote-api-gui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wikiquote-api-gui.js b/wikiquote-api-gui.js index 01dbdf2..4189d3f 100644 --- a/wikiquote-api-gui.js +++ b/wikiquote-api-gui.js @@ -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);