Skip to content

Commit

Permalink
删除重复的requestOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
LiarOnce committed Apr 24, 2024
1 parent d73c346 commit 220b4b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/assets/js/index/modals/app-details-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ const appDetailsModal = {
}
}

const requestOptions = {
mode: 'no-cors'
}

async function reloadAppRatings (appID) {
appDetailsModal.content.ratings.loggedIn.details.innerHTML = '<strong>@?</strong>';
appDetailsModal.content.ratings.loggedIn.points.value = 1;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 220b4b8

Please sign in to comment.