mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-03 00:31:43 +02:00
Merge pull request #58 from PhoenixTwoFive:fix/legacy/fix-no-owned-entry
Fix error on no owned entries
This commit is contained in:
@ -169,7 +169,11 @@
|
||||
}
|
||||
|
||||
function getOwnedEntries() {
|
||||
return JSON.parse(localStorage.getItem("ownedEntries"))
|
||||
var entries = JSON.parse(localStorage.getItem("ownedEntries"))
|
||||
if (entries == null) {
|
||||
entries = []
|
||||
}
|
||||
return entries;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user