mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 08:58:13 +01:00
remove yandere code :3
This commit is contained in:
parent
a8449a7ea4
commit
6f196fe0f4
1 changed files with 10 additions and 17 deletions
|
@ -37,16 +37,10 @@ function getJson(str) {
|
|||
}
|
||||
|
||||
function checkUnexistingObject(obj) {
|
||||
if (obj !== null) {
|
||||
if (obj.authorId !== null) {
|
||||
if (obj !== undefined) {
|
||||
if (obj.authorId !== undefined) {
|
||||
if (Object.hasOwn(obj, "authorId")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Api functions
|
||||
|
@ -86,7 +80,6 @@ async function video(v) {
|
|||
|
||||
var vid = await getJson(video_new_info);
|
||||
if (checkUnexistingObject(vid)) {
|
||||
|
||||
var a;
|
||||
|
||||
try {
|
||||
|
@ -96,7 +89,7 @@ async function video(v) {
|
|||
.then((res) => res.text())
|
||||
.then((xml) => getJson(toJson(xml)));
|
||||
} catch {
|
||||
var a = ""
|
||||
var a = "";
|
||||
}
|
||||
|
||||
const summary = await wiki
|
||||
|
|
Loading…
Reference in a new issue