diff --git a/res/index.js b/res/index.js index 702e142..dfea2a5 100644 --- a/res/index.js +++ b/res/index.js @@ -5,11 +5,11 @@ const onButtonClick = (buttonId) => { break; } case 'button-file-server': { - A('#content-container').load('https://files.hippoz.xyz/'); + window.location.href = 'https://files.hippoz.xyz/'; break; } case 'button-git-server': { - window.location.href = 'https://git.hippoz.xyz/' + window.location.href = 'https://git.hippoz.xyz/'; break; } case 'button-about-me': { diff --git a/res/lib/A.js b/res/lib/A.js index 4c5b158..02ea200 100644 --- a/res/lib/A.js +++ b/res/lib/A.js @@ -46,9 +46,7 @@ A._Collection.prototype.html = function (html) { }; A._Collection.prototype.load = async function (url) { - const res = await fetch(url, { - mode: 'no-cors' - }); + const res = await fetch(url); if (!res.ok) { console.error(`load(${url}) failed with code ${res.status}`); return;