scratchie icon indicating copy to clipboard operation
scratchie copied to clipboard

s.color is not a function

Open Bloemendaal opened this issue 4 years ago • 0 comments

When I use npm i scratchie to install it to my project and run the example, it gives the error Uncaught TypeError: s.color is not a function. In the file dist/scratchie.umd.js, on line 79, it says:

s.color('white', e),

If you change that to the code below, it works just fine:

s().color('white', e),

Also, there is no license reference in your JS files. Is it oke if I include the following line or do you prefer the full license?

/*! Scratchie 1.0.1-0 | https://npm.im/scratchie | (c) 2014 André Ruffert | MIT License */

Bloemendaal avatar Apr 15 '20 13:04 Bloemendaal