1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Fix bug with tiddler widget and a blank tiddler title

This commit is contained in:
Jermolene 2016-01-05 18:48:04 +00:00
parent 31b4f104e4
commit 93f7d8c028

View File

@ -193,11 +193,11 @@ exports.generateNewTitle = function(baseTitle,options) {
};
exports.isSystemTiddler = function(title) {
return title.indexOf("$:/") === 0;
return title && title.indexOf("$:/") === 0;
};
exports.isTemporaryTiddler = function(title) {
return title.indexOf("$:/temp/") === 0;
return title && title.indexOf("$:/temp/") === 0;
};
exports.isImageTiddler = function(title) {