web: Fix localStorage check on Firefox when dom.storage.enabled is false

This commit is contained in:
Daniel Jacobs 2023-05-16 14:39:17 -04:00 committed by relrelb
parent 19c0bb14d5
commit 56afce2e3a
1 changed files with 3 additions and 1 deletions

View File

@ -1038,7 +1038,9 @@ export class RufflePlayer extends HTMLElement {
return;
}
try {
localStorage;
if (localStorage === null) {
return;
}
} catch (e: unknown) {
return;
}