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;
|
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': {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue