1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

All: Created ResourceFetcher class to handle resource downloads

This commit is contained in:
Laurent Cozic
2018-10-08 07:36:45 +01:00
parent d66fa87b2b
commit dbdd602f50
4 changed files with 163 additions and 3 deletions

View File

@@ -14,6 +14,10 @@ class BaseSyncTarget {
return false;
}
static resourceDirName() {
return '.resource';
}
option(name, defaultValue = null) {
return this.options_ && (name in this.options_) ? this.options_[name] : defaultValue;
}