decred / dcrticketbuyer

An automated smart ticket purchaser.
0 stars 7 forks source link

graphs don't display due to local file access via javascript #39

Closed jolan closed 8 years ago

jolan commented 8 years ago

Reported here:

https://forum.decred.org/threads/dd-15-v0-3-0-08-15-16.3960/page-2#post-21758

I can reproduce locally.

It ends up generating javascript calls with local paths like:

d3.csv("/home/myuser/decred/webui/prices.csv")

These fail due to the browser's javascript security model (though kind of odd that it doesn't trigger a visible warning).

It should just be:

d3.csv("webui/prices.csv")

I believe this worked originally due to the default config but a generated config from dcrinstall broke it since it expects a relative path and not absolute one.

jolan commented 8 years ago

I will fix this as part of #2.