Explorar o código

fix using wrong variable (fixes #3173)

Falko Schindler hai 11 meses
pai
achega
3f1ace4e0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
   anchor.click();
   document.body.removeChild(anchor);
   document.body.removeChild(anchor);
   if (typeof src !== "string") {
   if (typeof src !== "string") {
-    URL.revokeObjectURL(url);
+    URL.revokeObjectURL(anchor.href);
   }
   }
 }
 }