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(() => {
|
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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user