Feature/support new tachiyomi backup file extension (#430)

* [Codegen] Fix restore backup mutation/query

The server doesn't support nested objects for file uploads

* Support new tachiyomi backup extension
This commit is contained in:
schroda
2023-10-29 01:45:08 +02:00
committed by GitHub
parent 5a5b12a9e1
commit 30fd8b0fca
5 changed files with 10 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ export function Backup() {
useSetDefaultBackTo('settings');
const submitBackup = (file: File) => {
if (file.name.toLowerCase().endsWith('proto.gz')) {
if (file.name.toLowerCase().match(/proto\.gz$|tachibk$/g)) {
makeToast(t('settings.backup.label.restoring_backup'), 'info');
requestManager
.restoreBackupFile(file)