pshihn/legra

Importing Legra in script tag requires to use lowercase constructor

Opened this issue · 1 comments

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 :)

Yep it should be Capitalized in this case, because it's a class name.
Thanks for reporting