Skip to content

Commit 1eea0a3

Browse files
authored
Fix fireworks not checking localStorage flag (#2260)
1 parent 96fd271 commit 1eea0a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/fireworks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export function FireworksProvider ({ children }) {
2727
useEffect(() => {
2828
setContext({
2929
strike: () => {
30+
const should = window.localStorage.getItem('lnAnimate') || 'yes'
31+
if (should !== 'yes') return false
3032
cont?.addEmitter(
3133
{
3234
direction: 'top',

0 commit comments

Comments
 (0)