Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-du committed Jan 20, 2021
1 parent 1d56963 commit 685949f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web ./target/release/wiki-graph -p ${PORT} app
web ./target/release/wiki-graph -d -p ${PORT} app
6 changes: 3 additions & 3 deletions src/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,9 @@ <h1>Wiki Search</h1>
document.getElementById("loading").style.display = "";
let url = "search?words=" + words;

// if (window.location.host.indexOf("127.0.0.1") || window.location.host.indexOf("localhost")) {
// url = "https://wiki-graphs.herokuapp.com/" + "search?words=" + words;
// }
if (window.location.host.indexOf("127.0.0.1") || window.location.host.indexOf("localhost")) {
url = "https://wiki-graphs.herokuapp.com/" + "search?words=" + words;
}

$.ajax({
type: "GET",
Expand Down

0 comments on commit 685949f

Please sign in to comment.