js-md5 icon indicating copy to clipboard operation
js-md5 copied to clipboard

Doesn't work correctly in Electron

Open simonhamp opened this issue 1 year ago • 1 comments

Some NativePHP users are experiencing this issue via Filament, an open source component library and admin panel solution for Laravel.

It seems that under Electron, this check returns true when it's not expected to:

var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;

Is there something you could do to fix this? Or is there maybe a build option on the Filament side that might help?

simonhamp avatar Sep 09 '24 15:09 simonhamp

Try to set global.JS_MD5_NO_NODE_JS = true before require js-md5. global may have a different name in your environment.

emn178 avatar Sep 10 '24 01:09 emn178

Thanks! I believe this is working for folks 👍🏼

simonhamp avatar Oct 21 '24 19:10 simonhamp