shiviz
shiviz copied to clipboard
Deployment dev variable inconsistency
The "dev" variable is set to "true" in dev.js and "false" in deployed.js
However, when an example log is clicked, in shiviz.js, there is the following statement:
(dev ? "https://api.github.com/repos/bestchai/shiviz-logs/contents/" : "/shiviz/log/")
This works right now but going by how "dev" is set, it should be loading the log from "/shiviz/log/" during deployment but it's actually fetching from github. The situation is reversed for fetching motifs.json in searchBar.js even though the statement is the same. That is, during deployment, it loads the file from "/shiviz/log" instead of from github.
A temporary fix is in b9af7ad where we try the local path first and when it fails, we fetch the file from github
[Issue created by pattypcw: 2015-08-19]