web: Fix localStorage check on Firefox when dom.storage.enabled is false
This commit is contained in:
parent
19c0bb14d5
commit
56afce2e3a
|
@ -1038,7 +1038,9 @@ export class RufflePlayer extends HTMLElement {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
localStorage;
|
||||
if (localStorage === null) {
|
||||
return;
|
||||
}
|
||||
} catch (e: unknown) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue