mirror of
https://bitbucket.org/anticensority/antizapret-pac-generator-light.git
synced 2024-11-22 05:06:04 +03:00
unlzp IE6-8 support
This commit is contained in:
parent
a507f39d67
commit
151d0fd26b
@ -70,7 +70,7 @@ function unlzp(d, m, lim) {
|
|||||||
var mask = 0, maskpos = 0, dpos = 0, out = Array(8), outpos = 0, outfinal = '';
|
var mask = 0, maskpos = 0, dpos = 0, out = Array(8), outpos = 0, outfinal = '';
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
mask = m[maskpos++];
|
mask = m.charAt(maskpos++);
|
||||||
if (!mask)
|
if (!mask)
|
||||||
break
|
break
|
||||||
mask = mask.charCodeAt(0);
|
mask = mask.charCodeAt(0);
|
||||||
@ -79,7 +79,7 @@ function unlzp(d, m, lim) {
|
|||||||
if (mask & (1 << i)) {
|
if (mask & (1 << i)) {
|
||||||
c = table[hash];
|
c = table[hash];
|
||||||
} else {
|
} else {
|
||||||
c = d[dpos++];
|
c = d.charAt(dpos++);
|
||||||
if (!c)
|
if (!c)
|
||||||
break
|
break
|
||||||
c = c.charCodeAt(0);
|
c = c.charCodeAt(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user