Sep 2, 2020
0
Level 1
How to solve Uncaught TypeError?
How to solve the this error.This error is inside the plugin file
acquireContext: function(t, e) {
"string" == typeof t ? t = document.getElementById(t) : t.length && (t = t[0]),
t && t.canvas && (t = t.canvas);
var i = t && t.getContext && t.getContext("2d");
return this._ensureLoaded(),
i && i.canvas === t ? (function(t, e) {
var i = t.style
, n = t.getAttribute("height")
, a = t.getAttribute("width");
if (t[_e] = {
initial: {
height: n,
width: a,
style: {
display: i.display,
height: i.height,
width: i.width
}
}
},
i.display = i.display || "block",
null === a || "" === a) {
var o = De(t, "width");
void 0 !== o && (t.width = o)
}
if (null === n || "" === n)
if ("" === t.style.height)
t.height = t.width / (e.options.aspectRatio || 2);
else {
var r = De(t, "height");
void 0 !== o && (t.height = r)
}
}(t, e),
i) : null
},
The source from browser tab
Please or to participate in this conversation.