client/settings/disable motion: turn off jQuery animations if motion is disabled

This commit is contained in:
Adorian Doran
2025-08-22 22:20:57 +03:00
parent 9b1da8c311
commit d1538508e8

View File

@@ -56,5 +56,12 @@
<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
<script src="<%= appPath %>/desktop.js" crossorigin type="module"></script>
<script>
// Turn off jQuery animations if motion is disabled
addEventListener("DOMContentLoaded", () => {
jQuery.fx.off = <%= motionEnabled !== true %>;
});
</script>
</body>
</html>