From 84d1bd474286ecb97ce80a4b78e16899ef61b552 Mon Sep 17 00:00:00 2001 From: "jill \"oatmealine\" monoids" Date: Sat, 5 Mar 2022 13:08:57 +0000 Subject: [PATCH] point urls to the correct location --- src/App.svelte | 4 ++-- src/ChartCreation.svelte | 5 +++-- src/ChartEdit.svelte | 8 ++++---- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 4147469..74cc7c2 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -60,7 +60,7 @@ {/if} - \ No newline at end of file + diff --git a/src/ChartCreation.svelte b/src/ChartCreation.svelte index 8dd71b3..4152049 100644 --- a/src/ChartCreation.svelte +++ b/src/ChartCreation.svelte @@ -39,7 +39,8 @@ disableButton = true; try { - const response = await fetch('http://localhost:5252/create', { + console.log('hello?'); + const response = await fetch('https://chartmaker.oat.zone/create', { method: 'POST', mode: 'cors', headers: { @@ -153,4 +154,4 @@ {/key} - \ No newline at end of file + diff --git a/src/ChartEdit.svelte b/src/ChartEdit.svelte index 667c0bd..c3c2611 100644 --- a/src/ChartEdit.svelte +++ b/src/ChartEdit.svelte @@ -32,7 +32,7 @@ let submitError = null; onMount(() => { - s = new WebSocket('ws://localhost:5252/connect?id=' + $currentChartID); + s = new WebSocket('wss://chartmaker.oat.zone/connect?id=' + $currentChartID); s.addEventListener('message', (e) => { let data = JSON.parse(e.data); console.log(data); @@ -45,7 +45,7 @@ isLoaded = true; } else { for (const img of data) { - img.file = 'http://localhost:5252/img/' + img.file; + img.file = 'https://chartmaker.oat.zone/img/' + img.file; } images.update(imgs => [...imgs, ...data]); } @@ -67,7 +67,7 @@ formData.append('icon', upload); try { - const response = await fetch('http://localhost:5252/add', { + const response = await fetch('https://chartmaker.oat.zone/add', { method: 'POST', mode: 'cors', body: formData, @@ -273,4 +273,4 @@ {/if} - \ No newline at end of file +