A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: fix crash on webkit (safari)
Abdullah Atta780bebe141c8
diff --git a/apps/web/src/utils/stream-saver/index.ts b/apps/web/src/utils/stream-saver/index.tsindex 67cf3219c..243288a8d 100644--- a/apps/web/src/utils/stream-saver/index.ts+++ b/apps/web/src/utils/stream-saver/index.ts@@ -52,13 +52,17 @@ try {}function checkSupportsTransferable() {- // Transferable stream was first enabled in chrome v73 behind a flag- const { readable } = new TransformStream();- const mc = new MessageChannel();- mc.port1.postMessage(readable, [readable]);- mc.port1.close();- mc.port2.close();- supportsTransferable = true;+ try {+ // Transferable stream was first enabled in chrome v73 behind a flag+ const { readable } = new TransformStream();+ const mc = new MessageChannel();+ mc.port1.postMessage(readable, [readable]);+ mc.port1.close();+ mc.port2.close();+ supportsTransferable = true;+ } catch {+ // ignore+ }}checkSupportsTransferable();