From d2614ef481aefd7ce1ed08249a0346406c958d82 Mon Sep 17 00:00:00 2001 From: Matt Glaman Date: Thu, 11 Jul 2024 15:43:58 -0500 Subject: [PATCH] Remove backup blob from memory after download Prevent backup archive blob from persisting in memory until leaving demo --- demo-web/src/Filesystem.js | 1 + 1 file changed, 1 insertion(+) diff --git a/demo-web/src/Filesystem.js b/demo-web/src/Filesystem.js index ddca767b9..3b5944592 100644 --- a/demo-web/src/Filesystem.js +++ b/demo-web/src/Filesystem.js @@ -31,6 +31,7 @@ const backupSite = async () => { const link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.click(); + URL.revokeObjectURL(link.href); }; const restoreSite = async ({fileInput}) => {