mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-05 10:03:03 +00:00
@@ -1509,6 +1509,13 @@ exports.invokeUpgraders = function(titles,tiddlers) {
|
|||||||
|
|
||||||
// Determine whether a plugin by title is dynamically loadable
|
// Determine whether a plugin by title is dynamically loadable
|
||||||
exports.doesPluginRequireReload = function(title) {
|
exports.doesPluginRequireReload = function(title) {
|
||||||
|
var tiddler = this.getTiddler(title);
|
||||||
|
if(tiddler && tiddler.fields.type === "application/json" && tiddler.fields["plugin-type"]) {
|
||||||
|
if(tiddler.fields["plugin-type"] === "import") {
|
||||||
|
// The import plugin never requires reloading
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return this.doesPluginInfoRequireReload(this.getPluginInfo(title) || this.getTiddlerDataCached(title));
|
return this.doesPluginInfoRequireReload(this.getPluginInfo(title) || this.getTiddlerDataCached(title));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user