1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Ensure things work when $:/config/AnimationDuration is blank or not a valid number

Thanks @jdjdjdjdjdjd
This commit is contained in:
Jermolene 2019-02-12 12:14:55 +00:00
parent f97d18bb6e
commit 72f2a94251

View File

@ -651,7 +651,7 @@ exports.extractVersionInfo = function() {
Get the animation duration in ms Get the animation duration in ms
*/ */
exports.getAnimationDuration = function() { exports.getAnimationDuration = function() {
return parseInt($tw.wiki.getTiddlerText("$:/config/AnimationDuration","400"),10); return parseInt($tw.wiki.getTiddlerText("$:/config/AnimationDuration","400"),10) || 0;
}; };
/* /*