MCPcopy Create free account
hub / github.com/codemistic/Web-Development / d

Function d

QR-Code Generator/qrcode.js:576–585  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

574 function a() { this._elImage.src = this._elCanvas.toDataURL("image/png"), this._elImage.style.display = "block", this._elCanvas.style.display = "none" }
575
576 function d(a, b) {
577 var c = this;
578 if (c._fFail = b, c._fSuccess = a, null === c._bSupportDataURI) {
579 var d = document.createElement("img"),
580 e = function() { c._bSupportDataURI = !1, c._fFail && _fFail.call(c) },
581 f = function() { c._bSupportDataURI = !0, c._fSuccess && c._fSuccess.call(c) };
582 return d.onabort = e, d.onerror = e, d.onload = f, d.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==", void 0
583 }
584 c._bSupportDataURI === !0 && c._fSuccess ? c._fSuccess.call(c) : c._bSupportDataURI === !1 && c._fFail && c._fFail.call(c)
585 }
586 if (this._android && this._android <= 2.1) {
587 var b = 1 / window.devicePixelRatio,
588 c = CanvasRenderingContext2D.prototype.drawImage;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected