Skip to content

Commit

Permalink
testing some idea
Browse files Browse the repository at this point in the history
  • Loading branch information
katemat committed Jul 16, 2020
1 parent 981c1df commit ae6a86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/trashure-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function showPosition(position, cb) {
// Fetches information to be displayed
const handlePinClick = function (e) {
const url = `https://trashure-app.herokuapp.com/api/trashure_items/${e.target.metadata.id}`;
const url = `http://localhost:8080/api/trashure_items/${e.target.metadata.id}`;
// const url = `http://localhost:8080/api/trashure_items/${e.target.metadata.id}`;
axios.get(url).then((res) => {
res.data.forEach(function (data) {
document.querySelector('.description-of-item').classList.remove('hidden');
Expand Down

0 comments on commit ae6a86b

Please sign in to comment.