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
|
||||
const { isEnabled: isSpecialEnabled } = useSpecialThemeStore();
|
||||
useEffect(() => {
|
||||
if (isSpecialEnabled) {
|
||||
if (isSpecialEnabled && !isMobile) {
|
||||
initSnow({ flakeCount: 150 });
|
||||
}
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user