Fix fireworks not checking localStorage flag (#2260)

This commit is contained in:
ekzyis 2025-07-05 17:41:16 +02:00 committed by GitHub
parent 96fd271573
commit 1eea0a3ae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,6 +27,8 @@ export function FireworksProvider ({ children }) {
useEffect(() => { useEffect(() => {
setContext({ setContext({
strike: () => { strike: () => {
const should = window.localStorage.getItem('lnAnimate') || 'yes'
if (should !== 'yes') return false
cont?.addEmitter( cont?.addEmitter(
{ {
direction: 'top', direction: 'top',