diff --git a/src/main.tsx b/src/main.tsx index 1bb2436..6e28cf4 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -60,6 +60,11 @@ function handlePublicSharing(token) { console.error('#imgframe element not found') return } + const mimetypeElmt = document.getElementById('mimetype') as HTMLInputElement + const isWhiteboard = mimetypeElmt && mimetypeElmt.value === 'application/vnd.excalidraw+json' + if (isPublicShare() && !isWhiteboard) { + return + } imgframeElement.innerHTML = ''