mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
Fix error on no owned entries
This commit is contained in:
parent
08d0e5557b
commit
e66e4a6c19
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user