pa7 / nude.js

Nudity detection with JavaScript and HTMLCanvas
http://www.patrick-wied.at/static/nudejs/
2.35k stars 225 forks source link

worker js file #3

Open ghost opened 13 years ago

ghost commented 13 years ago

Even in the nude.min.js file it still want to load the uncompressed worker.nude.js. Also, it looks for the worker file in the root directory, one should either have to have the option to tell nude where the worker file is located or, it should default to the same directory in which nude is.

DTrejo commented 13 years ago

bump

the fix is a one liner: cp tests/worker.nude.min.js tests/worker.nude.js

joshi1983 commented 4 years ago

I had to modify the source of nude.js in my project to do that too. I'm using nude.js in a big project with all our third party libraries under a /lib route.

We'd want an option to pass in that tells it the worker is also in '/lib/nudejs/worker.nude.js' or similar like ghost suggested.