Fix fireworks not checking localStorage flag (#2260)
This commit is contained in:
parent
96fd271573
commit
1eea0a3ae0
@ -27,6 +27,8 @@ export function FireworksProvider ({ children }) {
|
||||
useEffect(() => {
|
||||
setContext({
|
||||
strike: () => {
|
||||
const should = window.localStorage.getItem('lnAnimate') || 'yes'
|
||||
if (should !== 'yes') return false
|
||||
cont?.addEmitter(
|
||||
{
|
||||
direction: 'top',
|
||||
|
Loading…
x
Reference in New Issue
Block a user