Patch UPNG.js to fix bad global check

Fixes #272
main
Isaiah Odhner 2023-01-13 20:30:44 -05:00
parent c05cfde5c6
commit 2a3ae1c0eb
1 changed files with 1 additions and 1 deletions

View File

@ -799,7 +799,7 @@ UPNG.encode._filterZero = function(img,h,bpp,bpl,data, filter, levelZero)
var opts; if(levelZero) opts={level:0};
var CMPR = (data.length>10e6 && UZIP!=null) ? UZIP : pako;
var CMPR = (data.length>10e6 && typeof UZIP!="undefined" && UZIP!=null) ? UZIP : pako;
var time = Date.now();
for(var i=0; i<ftry.length; i++) {