nevermind
This commit is contained in:
parent
f94b3cf6e3
commit
d6d22f7d08
2 changed files with 3 additions and 5 deletions
|
@ -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': {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue