(next: BackupWebdavState)
| 1195 | } |
| 1196 | |
| 1197 | async function writeBackupWebdavState(next: BackupWebdavState) { |
| 1198 | await upsertSetting(BACKUP_WEBDAV_STATE_SETTING_KEY, next); |
| 1199 | } |
| 1200 | |
| 1201 | function resolveBackupWebdavAuthHeader(config: BackupWebdavConfig): string | null { |
| 1202 | if (!config.username && !config.password) return null; |
no test coverage detected