nevermind

This commit is contained in:
hippoz 2020-10-04 22:55:27 +03:00
parent f94b3cf6e3
commit d6d22f7d08
2 changed files with 3 additions and 5 deletions

View file

@ -5,11 +5,11 @@ const onButtonClick = (buttonId) => {
break; break;
} }
case 'button-file-server': { case 'button-file-server': {
A('#content-container').load('https://files.hippoz.xyz/'); window.location.href = 'https://files.hippoz.xyz/';
break; break;
} }
case 'button-git-server': { case 'button-git-server': {
window.location.href = 'https://git.hippoz.xyz/' window.location.href = 'https://git.hippoz.xyz/';
break; break;
} }
case 'button-about-me': { case 'button-about-me': {

View file

@ -46,9 +46,7 @@ A._Collection.prototype.html = function (html) {
}; };
A._Collection.prototype.load = async function (url) { A._Collection.prototype.load = async function (url) {
const res = await fetch(url, { const res = await fetch(url);
mode: 'no-cors'
});
if (!res.ok) { if (!res.ok) {
console.error(`load(${url}) failed with code ${res.status}`); console.error(`load(${url}) failed with code ${res.status}`);
return; return;