wh0 / nix-cache-view

in-browser .nar explorer
https://wh0.github.io/nix-cache-view/
MIT License
12 stars 1 forks source link

Is it better to put parameters in hash? #8

Open wh0 opened 1 year ago

wh0 commented 1 year ago

To make it clearer to the sever as well as the browser that it's all the same .html file.

Downside is we manually have to detect hashchange events to load another file.

See our current code for reading url paramters https://github.com/wh0/nix-cache-view/blob/1a5bba2d55272506ff2f7c6af27cf0bf92d79474/nar.html#L7-L9