소스 검색

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);
   }
 }