mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-04 17:56:56 +00:00
Ensure things work when $:/config/AnimationDuration is blank or not a valid number
Thanks @jdjdjdjdjdjd
This commit is contained in:
parent
f97d18bb6e
commit
72f2a94251
@ -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;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user