Updated logic based on comment
This commit is contained in:
parent
804ecf98d0
commit
a2a83ebd84
1 changed files with 1 additions and 5 deletions
6
gog.js
6
gog.js
|
|
@ -293,11 +293,7 @@ async function claimFreegames(){
|
||||||
function isClaimedUrl(url) {
|
function isClaimedUrl(url) {
|
||||||
try {
|
try {
|
||||||
var status = db.data[user][url.split("/").filter((x) => !!x).pop()]["status"];
|
var status = db.data[user][url.split("/").filter((x) => !!x).pop()]["status"];
|
||||||
if (status === "existed" || status === "claimed") {
|
return status === "existed" || status === "claimed";
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue