mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 21:47:39 +02:00
Fixed backup fie name
This commit is contained in:
@@ -3606,7 +3606,7 @@ export const api = {
|
||||
let filename = 'bambuddy-backup.zip';
|
||||
if (contentDisposition) {
|
||||
const match = contentDisposition.match(/filename=([^;]+)/);
|
||||
if (match) filename = match[1].trim();
|
||||
if (match) filename = match[1].trim().replace(/^"(.*)"$/, '$1');
|
||||
}
|
||||
|
||||
const blob = await response.blob();
|
||||
|
||||
Reference in New Issue
Block a user