TinyColor not getting exported when used in a electron app
TaromaruYuki opened this issue · comments
So im trying to load tinycolor in a electron app. I add the cdn link to my index.html
, but when i go in the developer console, I get this error.
I also try accessing it from window.tinycolor
, but that also isnt working.
Downloading tinycolor locally also does not work.
Why is this happening? Is there another way to load it?
It's working fine if I open in live server for example.
Im not using the node module, im just throwing the cdn in my html file.
Can you send over the exact script tag you are using?
@bgrins The script tag I'm using is <script src="https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.2/tinycolor.min.js" integrity="sha512-+aXA9mgbUvFe0ToTlbt8/3vT7+nOgUmFw29wfFCsGoh8AZMRSU0p4WtOvC1vkF2JBrndPN2TuNZsHPAKPPxe8Q==" crossorigin="anonymous"></script>
but I have also downloaded the dist js file, and neither work. I have other libraries that load in fine, but TinyColor is the only one that has not.
Update?