mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 11:01:47 +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:
commit
ddb1e0d2a0
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user