From 220b4b8f9fbfb9b2a006d2c86a26b8a16224e7b4 Mon Sep 17 00:00:00 2001 From: LiarOnce Date: Wed, 24 Apr 2024 23:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=87=8D=E5=A4=8D=E7=9A=84re?= =?UTF-8?q?questOptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/index/modals/app-details-modal.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/assets/js/index/modals/app-details-modal.js b/src/assets/js/index/modals/app-details-modal.js index 00074fa..0592505 100644 --- a/src/assets/js/index/modals/app-details-modal.js +++ b/src/assets/js/index/modals/app-details-modal.js @@ -46,10 +46,6 @@ const appDetailsModal = { } } -const requestOptions = { - mode: 'no-cors' -} - async function reloadAppRatings (appID) { appDetailsModal.content.ratings.loggedIn.details.innerHTML = '@?'; appDetailsModal.content.ratings.loggedIn.points.value = 1; @@ -224,7 +220,7 @@ function setAppDetailsModalDetails (appDetails) { appDetailsModal.content.version.innerText = appDetails.download.version } else if (appDetails.download.manifest) { appDetailsModal.content.version.innerText = "..." - fetch(`https://kaios.tri1.workers.dev?url=${appDetails.download.manifest}`, requestOptions).then(async response => { + fetch(`https://kaios.tri1.workers.dev?url=${appDetails.download.manifest}`).then(async response => { if (response.ok) { const manifest = await response.json(); if (manifest.version) {