Skip to content

Commit 2592fa9

Browse files
author
Tom James Holub
committed
common.js libsync - ff download updates
1 parent 6cfd0f4 commit 2592fa9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

FlowCrypt/src/main/assets/js/common.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,13 @@
859859
a.dispatchEvent(e);
860860
}
861861
if(env_browser().name === 'firefox') {
862-
document.body.removeChild(a);
862+
try {
863+
document.body.removeChild(a);
864+
} catch(err) {
865+
if(err.message !== 'Node was not found') {
866+
throw err;
867+
}
868+
}
863869
}
864870
window.URL.revokeObjectURL(a.href);
865871
}

0 commit comments

Comments
 (0)