Browse Source

Dirty hack to disable libwebp alerts

Closes #1384
master
Igor Zhukov 8 years ago
parent
commit
abd9849f52
  1. 7
      app/vendor/libwebpjs/libwebp-0.2.0.js

7
app/vendor/libwebpjs/libwebp-0.2.0.js vendored

@ -24,6 +24,8 @@
// Author: Dominik Homberger (dominik.homberger@gmail.com) // Author: Dominik Homberger (dominik.homberger@gmail.com)
(function() { (function() {
var self;
var ca = void 0, var ca = void 0,
p = null, p = null,
s = 0, s = 0,
@ -617,7 +619,7 @@
function Y(a, b, c) { function Y(a, b, c) {
a.a == L && (a.a = b, a.xc = c, a.za = 0); a.a == L && (a.a = b, a.xc = c, a.za = 0);
alert(b + ": " + c); // alert(b + ": " + c);
return 0 return 0
} }
@ -2657,7 +2659,7 @@
Hd(a, g) ? (e = zd(g.width, g.height, d.Qa, d.j), e == L && !Mf(a, g) && (e = a.a)) : e = a.a; Hd(a, g) ? (e = zd(g.width, g.height, d.Qa, d.j), e == L && !Mf(a, g) && (e = a.a)) : e = a.a;
a != p && ke(a) a != p && ke(a)
} }
e != L && this.Yc(d.j); e != L && (self || this).Yc(d.j);
return e return e
} }
@ -3225,6 +3227,7 @@
this.WebPFreeDecBuffer = this.Yc = function(a) { this.WebPFreeDecBuffer = this.Yc = function(a) {
a != p && (a.Fc || (a.Jb = ""), a.jc = 0, a.Jb = a.jc = p) a != p && (a.Fc || (a.Jb = ""), a.jc = 0, a.Jb = a.jc = p)
}; };
self = this;
var va = U(511, x), var va = U(511, x),
tc = U(511, x), tc = U(511, x),
sc = U(2041, 0), sc = U(2041, 0),

Loading…
Cancel
Save