Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.

Commit abd9849

Browse files
committed
Dirty hack to disable libwebp alerts
Closes #1384
1 parent d2cb927 commit abd9849

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎app/vendor/libwebpjs/libwebp-0.2.0.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
// Author: Dominik Homberger (dominik.homberger@gmail.com)
2525
(function() {
2626

27+
var self;
28+
2729
var ca = void 0,
2830
p = null,
2931
s = 0,
@@ -617,7 +619,7 @@
617619

618620
function Y(a, b, c) {
619621
a.a == L && (a.a = b, a.xc = c, a.za = 0);
620-
alert(b + ": " + c);
622+
// alert(b + ": " + c);
621623
return 0
622624
}
623625

@@ -2657,7 +2659,7 @@
26572659
Hd(a, g) ? (e = zd(g.width, g.height, d.Qa, d.j), e == L && !Mf(a, g) && (e = a.a)) : e = a.a;
26582660
a != p && ke(a)
26592661
}
2660-
e != L && this.Yc(d.j);
2662+
e != L && (self || this).Yc(d.j);
26612663
return e
26622664
}
26632665

@@ -3225,6 +3227,7 @@
32253227
this.WebPFreeDecBuffer = this.Yc = function(a) {
32263228
a != p && (a.Fc || (a.Jb = ""), a.jc = 0, a.Jb = a.jc = p)
32273229
};
3230+
self = this;
32283231
var va = U(511, x),
32293232
tc = U(511, x),
32303233
sc = U(2041, 0),

0 commit comments

Comments
 (0)