diff --git a/b0esche_cloud/lib/pages/file_explorer.dart b/b0esche_cloud/lib/pages/file_explorer.dart index d85f893..b0b23d1 100644 --- a/b0esche_cloud/lib/pages/file_explorer.dart +++ b/b0esche_cloud/lib/pages/file_explorer.dart @@ -354,7 +354,9 @@ class _FileExplorerState extends State { final bytes = response.bodyBytes; final blob = web.Blob( [bytes.toJS].toJS, - web.BlobPropertyBag(type: response.headers['content-type'] ?? 'application/octet-stream'), + web.BlobPropertyBag( + type: response.headers['content-type'] ?? 'application/octet-stream', + ), ); final blobUrl = web.URL.createObjectURL(blob); @@ -365,7 +367,7 @@ class _FileExplorerState extends State { ..style.display = 'none'; web.document.body?.appendChild(anchor); anchor.click(); - + // Cleanup web.document.body?.removeChild(anchor); web.URL.revokeObjectURL(blobUrl);