mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
client/settings/disable motion: turn off jQuery animations if motion is disabled
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user