DrKain/csgo-sticker-signature-generator

Background image path breaks on local server

Closed this issue · 3 comments

The background image load correctly at:

http://localhost/csgo-sticker-signature

But it fails to load at:

http://localhost/csgo-sticker-signature/index.html

This is because the default background image path is concatenating the path to the image with the current location's path name.

This produces a 404 (Resource not found) error; which breaks redrawing on the canvas.

http://localhost/csgo-sticker-signature/index.htmlimages/nobg.png

Added a pull request: Pull Request #6

Thanks for the commit, But this generator isn't designed to work on a local server.
As designed, You can use the generator at the following URL.
http://tryhardhusky.github.io/csgo-sticker-signature-generator/

OK, so the "local server" part was just that not all servers are configured to rewrite my-website.com/index.html to mywebsite.com/

The following link is broken, but valid:

http://tryhardhusky.github.io/csgo-sticker-signature-generator/index.html