diff --git a/public/index.html b/public/index.html
index a2dd001..f74ac27 100644
--- a/public/index.html
+++ b/public/index.html
@@ -37,7 +37,7 @@
document.getElementById('progress-album').innerHTML = '';
document.getElementById('progress-bar-wrapper').innerHTML = '';
document.getElementById('albums').innerHTML = '
';
- const d = await axios.get('http://localhost:4500/api/search', {params: {search: e.target.value}});
+ const d = await axios.get('/api/search', {params: {search: e.target.value}});
console.log(d);
document.getElementById('albums').innerHTML = d.data.map(d =>
`${d.title}by ${d.artist.name} `
@@ -50,7 +50,7 @@
console.log(id);
document.getElementById('albums').innerHTML = '';
document.getElementById('progress-album').innerHTML = '';
- const ws = new WebSocket('ws://localhost:4500/api/album?id=' + id);
+ const ws = new WebSocket('wss://deemix.oat.zone/api/album?id=' + id);
ws.onmessage = (m) => {
const d = JSON.parse(m.data);
console.log(d);
@@ -65,7 +65,7 @@
console.log(d.data);
coverArt = d.data;
} else if (d.key === 'download') {
- download('http://localhost:4500' + d.data);
+ download(d.data);
}
}
}
@@ -230,13 +230,7 @@
-
+