Set default for game animations in cookies

This commit is contained in:
miles committed 2025-04-11 14:52:14 +00:00
1 parent 86f91e7216
commit 8a4927080c
1 file changed
+5
+5
View File
@@ -139,6 +139,11 @@
return null;
}
// Ensure animations are enabled by default
if (getCookie('gameAnimation') === null) {
setCookie('gameAnimation', 'true', 30); // Default to animations enabled
}
// Function to make everything visible if animations are turned off
function makeEverythingVisible() {
// Make the title visible