Importing Legra in script tag requires to use lowercase constructor
Opened this issue · 1 comments
r34117y commented
const legra = new Legra(ctxFace, 20);
Uncaught ReferenceError: Legra is not defined
const legra = new legra(ctxFace, 20);
Uncaught ReferenceError: Cannot access 'legra' before initialization
const l = new legra(ctxFace, 20);
Above works ok
It is not mentioned in docs :)
pshihn commented
Yep it should be Capitalized in this case, because it's a class name.
Thanks for reporting