node-gallery icon indicating copy to clipboard operation
node-gallery copied to clipboard

Problems on Windows

Open DWand opened this issue 9 years ago • 0 comments

Hello, @cianclarke. Thank you for this wonderful module. I needed a quick way to organize a simple image gallery to share photos from a directory. This module does it quite well.

However, unfortunately, I wasn't able to make it work out of the box on Windows 7. After debugging I found that you are using a path.join method to construct urls for albums and photos. I guess, on Windows it produces incorrect values because of usage backward slashes instead of forward ones.

I was able to run it by replacing path.join with urljoin method. Tweaking the library is totally acceptable in my use case, but, probably, it may cause problems in production usage of the module. Hope, this helps somehow.

Best regards.

DWand avatar Mar 20 '16 10:03 DWand