mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix: snow effect shouldn't show on mobile
4chan also doesn't show it on mobile, it's too resource intensive
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ const BoardLayout = () => {
|
|||||||
// Christmas theme
|
// Christmas theme
|
||||||
const { isEnabled: isSpecialEnabled } = useSpecialThemeStore();
|
const { isEnabled: isSpecialEnabled } = useSpecialThemeStore();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isSpecialEnabled) {
|
if (isSpecialEnabled && !isMobile) {
|
||||||
initSnow({ flakeCount: 150 });
|
initSnow({ flakeCount: 150 });
|
||||||
}
|
}
|
||||||
return () => {
|
return () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user