Shared (frontend and backend) rules for determining the active cloud sync provider.
Methods
# static resolveCloudSyncProvider(cloudSyncProvider, dropboxToken) → {'dropbox'|'nextcloud'|null}
Resolve the active cloud sync provider from the raw settings values.
Installations from before the provider selection existed have no cloudSyncProvider setting;
if they have a Dropbox token they are treated as using Dropbox.
Parameters:
| Name | Type | Description |
|---|---|---|
cloudSyncProvider |
string
|
null
|
undefined
|
value of the |
dropboxToken |
string
|
null
|
undefined
|
value of the |
'dropbox'
|
'nextcloud'
|
null