Not real vanilla js
industral opened this issue · 1 comments
industral commented
In source code you use _currentScript
that actually polyfill stuff. And if it's not included component fail with an error. So renaming it to currentScript
will fix it and made it real vanilla js web component.
zenorocha commented
Now we verify if currentScript
is supported, if not we use _currentScript
.
https://github.com/webcomponents/hello-world-element/blob/master/src/hello-world.html#L11
Thanks for pointing it out @industral!