Don't try to process lazily loaded plugins

Fixes #4900
optimising-macrocalls
jeremy@jermolene.com 2020-10-23 15:37:20 +01:00
rodzic d254612826
commit 794dfb96f2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1272,7 +1272,7 @@ $tw.Wiki = function(options) {
$tw.utils.each(titles || getTiddlerTitles(),function(title) {
var tiddler = tiddlers[title];
if(tiddler) {
if(tiddler.fields.type === "application/json" && tiddler.hasField("plugin-type")) {
if(tiddler.fields.type === "application/json" && tiddler.hasField("plugin-type") && tiddler.fields.text) {
pluginInfo[tiddler.fields.title] = JSON.parse(tiddler.fields.text);
results.modifiedPlugins.push(tiddler.fields.title);
}