Browse Source

fix using wrong variable (fixes #3173)

Falko Schindler 11 months ago
parent
commit
3f1ace4e0c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nicegui/static/nicegui.js

+ 1 - 1
nicegui/static/nicegui.js

@@ -240,7 +240,7 @@ function download(src, filename, mediaType, prefix) {
   anchor.click();
   document.body.removeChild(anchor);
   if (typeof src !== "string") {
-    URL.revokeObjectURL(url);
+    URL.revokeObjectURL(anchor.href);
   }
 }