diff --git a/frontend/src/components/SearchBox.vue b/frontend/src/components/SearchBox.vue index ab15e36..c914eab 100644 --- a/frontend/src/components/SearchBox.vue +++ b/frontend/src/components/SearchBox.vue @@ -32,8 +32,8 @@ export default { } }, mounted() { - console.log(this.$route) - console.log(this.$route.params.query) + //console.log(this.$route) + //console.log(this.$route.params.query) this.query = decodeURIComponent(this.$route.params.query || encodeURIComponent("")); } } diff --git a/frontend/src/views/Inventory.vue b/frontend/src/views/Inventory.vue index b7efa4d..8e51e75 100644 --- a/frontend/src/views/Inventory.vue +++ b/frontend/src/views/Inventory.vue @@ -116,7 +116,7 @@ export default { try { const servers = await this.getFriends().then(friends => friends.map(friend => this.getFriendServer({username: friend}))) const urls = servers.map(server => server.then(s => { - return {host: `http://${s}`, target: "/api/inventory_items/"} + return {host: s, target: "/api/inventory_items/"} })) urls.map(url => url.then(u => this.apiFederatedGet(u).then(items => { this.setInventoryItems({url: u.domain, items})