mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-12 12:59:57 +00:00
Fix bug with tiddler widget and a blank tiddler title
This commit is contained in:
parent
31b4f104e4
commit
93f7d8c028
@ -193,11 +193,11 @@ exports.generateNewTitle = function(baseTitle,options) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.isSystemTiddler = function(title) {
|
exports.isSystemTiddler = function(title) {
|
||||||
return title.indexOf("$:/") === 0;
|
return title && title.indexOf("$:/") === 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.isTemporaryTiddler = function(title) {
|
exports.isTemporaryTiddler = function(title) {
|
||||||
return title.indexOf("$:/temp/") === 0;
|
return title && title.indexOf("$:/temp/") === 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.isImageTiddler = function(title) {
|
exports.isImageTiddler = function(title) {
|
||||||
|
Loading…
Reference in New Issue
Block a user