mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-14 22:01:23 +00:00
Make the syncer more configurable, including names for sync adaptors
@danielo515 you may want to add a name to your sync adaptor 😄
This commit is contained in:
@@ -24,6 +24,8 @@ function FileSystemAdaptor(options) {
|
||||
$tw.utils.createDirectory($tw.boot.wikiTiddlersPath);
|
||||
}
|
||||
|
||||
FileSystemAdaptor.prototype.name = "filesystem";
|
||||
|
||||
FileSystemAdaptor.prototype.isReady = function() {
|
||||
// The file system adaptor is always ready
|
||||
return true;
|
||||
|
||||
@@ -23,6 +23,8 @@ function TiddlyWebAdaptor(options) {
|
||||
this.logger = new $tw.utils.Logger("TiddlyWebAdaptor");
|
||||
}
|
||||
|
||||
TiddlyWebAdaptor.prototype.name = "tiddlyweb";
|
||||
|
||||
TiddlyWebAdaptor.prototype.isReady = function() {
|
||||
return this.hasStatus;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user