Преглед изворни кода

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