1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Various tweaks to get Nextcloud working in mobile

This commit is contained in:
Laurent Cozic
2018-01-25 19:01:14 +00:00
parent 1cc27f2509
commit 7ab135c099
16 changed files with 250 additions and 38 deletions

View File

@@ -23,6 +23,14 @@ class SyncTargetRegistry {
throw new Error('Name not found: ' + name);
}
static idToMetadata(id) {
for (let n in this.reg_) {
if (!this.reg_.hasOwnProperty(n)) continue;
if (this.reg_[n].id === id) return this.reg_[n];
}
throw new Error('ID not found: ' + id);
}
static idAndLabelPlainObject() {
let output = {};
for (let n in this.reg_) {