diff --git a/script.js b/script.js index 5b397b4..d46ccbe 100644 --- a/script.js +++ b/script.js @@ -323,7 +323,7 @@ async function share(shareButton, sharePositions) { const values = await Promise.all( chunks.map(async (chunk) => { - const response = await fetch("https://corsproxy.org/?https://hastebin.skyra.pw/documents", { + const response = await fetch("https://corsproxy.io/?https://hastebin.skyra.pw/documents", { method: "POST", body: chunk, }); @@ -332,7 +332,7 @@ async function share(shareButton, sharePositions) { ); const strings = values.map((v) => v.key); - const res = await fetch("https://corsproxy.org/?https://hastebin.skyra.pw/documents", { + const res = await fetch("https://corsproxy.io/?https://hastebin.skyra.pw/documents", { method: "POST", body: encodeUnicode(JSON.stringify(strings)), }); @@ -371,13 +371,13 @@ async function load() { console.log(`Loading with the id "${hash}"...`); // Get the chunks - const response = await fetch(`https://corsproxy.org/?https://hastebin.skyra.pw/raw/${hash}`); + const response = await fetch(`https://corsproxy.io/?https://hastebin.skyra.pw/raw/${hash}`); const text = await response.text(); const chunks = JSON.parse(decodeUnicode(text)); // Get the content of the chunks const chunksData = await Promise.all(chunks.map(async (chunk) => { - const chunkResponse = await fetch(`https://corsproxy.org/?https://hastebin.skyra.pw/raw/${chunk}`); + const chunkResponse = await fetch(`https://corsproxy.io/?https://hastebin.skyra.pw/raw/${chunk}`); return chunkResponse.text(); }));