Merge pull request #58 from PhoenixTwoFive:fix/legacy/fix-no-owned-entry

Fix error on no owned entries
This commit is contained in:
Phillip Kühne 2023-04-28 13:40:28 +02:00 committed by GitHub
commit ddb1e0d2a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,11 @@
} }
function getOwnedEntries() { function getOwnedEntries() {
return JSON.parse(localStorage.getItem("ownedEntries")) var entries = JSON.parse(localStorage.getItem("ownedEntries"))
if (entries == null) {
entries = []
}
return entries;
} }
</script> </script>