Explorar o código

URL.revokeObjectURL

Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
494da162ca
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/features/OfflineExam/OfflineExamList.vue

+ 2 - 0
src/features/OfflineExam/OfflineExamList.vue

@@ -185,6 +185,8 @@ export default {
         a.download = name;
         document.body.appendChild(a);
         a.click();
+        // delete the internal blob reference, to let the browser clear memory from it
+        URL.revokeObjectURL(a.href);
         document.body.removeChild(a);
       } else {
         window.location.href = url;