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) {
|
||||
try {
|
||||
var status = db.data[user][url.split("/").filter((x) => !!x).pop()]["status"];
|
||||
if (status === "existed" || status === "claimed") {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return status === "existed" || status === "claimed";
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue