From 72f2a9425197b013ab3664e1679c6763d92d4382 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 12 Feb 2019 12:14:55 +0000 Subject: [PATCH] Ensure things work when $:/config/AnimationDuration is blank or not a valid number Thanks @jdjdjdjdjdjd --- core/modules/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index 8dba0ce0a..672961a40 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -651,7 +651,7 @@ exports.extractVersionInfo = function() { Get the animation duration in ms */ exports.getAnimationDuration = function() { - return parseInt($tw.wiki.getTiddlerText("$:/config/AnimationDuration","400"),10); + return parseInt($tw.wiki.getTiddlerText("$:/config/AnimationDuration","400"),10) || 0; }; /*