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;
}
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': {

View file

@ -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;