mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +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 %>/runtime.js" crossorigin type="module"></script>
|
||||||
<script src="<%= appPath %>/desktop.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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user