Use this.wiki where applicable (#4601)

* Use state.wiki

* use local wiki where available

* fix a couple this vs self cases
This commit is contained in:
Arlen22
2020-05-06 11:27:50 +01:00
committed by GitHub
parent 48dfadd85b
commit 81f07cdf85
13 changed files with 25 additions and 22 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ Server.prototype.listen = function(port,host,prefix) {
port = process.env[port] || 8080;
}
// Warn if required plugins are missing
if(!$tw.wiki.getTiddler("$:/plugins/tiddlywiki/tiddlyweb") || !$tw.wiki.getTiddler("$:/plugins/tiddlywiki/filesystem")) {
if(!this.wiki.getTiddler("$:/plugins/tiddlywiki/tiddlyweb") || !this.wiki.getTiddler("$:/plugins/tiddlywiki/filesystem")) {
$tw.utils.warning("Warning: Plugins required for client-server operation (\"tiddlywiki/filesystem\" and \"tiddlywiki/tiddlyweb\") are missing from tiddlywiki.info file");
}
// Create the server