浏览代码

fix using wrong variable (fixes #3173)

Falko Schindler 11 月之前
父节点
当前提交
3f1ace4e0c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
   }
 }