소스 검색

URL.revokeObjectURL

Michael Wang 4 년 전
부모
커밋
494da162ca
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;