1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 10:30:28 +00:00

Fix crash when wiki/themes folder contains files that are not themes

Fixes #370
This commit is contained in:
Jermolene 2014-01-28 18:58:01 +00:00
parent 3b255561b7
commit 175e86078c

View File

@ -1256,7 +1256,7 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) {
}
}
// Give the plugin the same version number as the core if it doesn't have one
if(!("version" in pluginInfo)) {
if(pluginInfo && !("version" in pluginInfo)) {
pluginInfo.version = $tw.packageInfo.version;
}
// Save the plugin tiddler