From d6d22f7d087dd8d2ebe41a36986932e12d795030 Mon Sep 17 00:00:00 2001 From: hippoz Date: Sun, 4 Oct 2020 22:55:27 +0300 Subject: [PATCH] nevermind --- res/index.js | 4 ++-- res/lib/A.js | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) 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;