Browse Source

URL.revokeObjectURL

Michael Wang 4 years ago
parent
commit
494da162ca
1 changed files with 2 additions and 0 deletions
  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;