mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-07 13:28:01 +00:00
Give plugins a pluginType field
Ordinary plugins have the type "plugin", we'll also have "theme" and "language"
This commit is contained in:
@@ -1038,10 +1038,9 @@ $tw.loadPluginFolder = function(filepath,excludeRegExp) {
|
||||
title: pluginInfo.title,
|
||||
type: "application/json",
|
||||
plugin: "yes",
|
||||
text: JSON.stringify(pluginInfo,null,4)
|
||||
}
|
||||
if("pluginPriority" in pluginInfo) {
|
||||
fields.pluginPriority = pluginInfo.pluginPriority;
|
||||
text: JSON.stringify(pluginInfo,null,4),
|
||||
pluginPriority: pluginInfo.pluginPriority,
|
||||
pluginType: pluginInfo.pluginType || "plugin"
|
||||
}
|
||||
return fields;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user