Skip to content

Commit

Permalink
Merge pull request #201 from nextcloud/fix/nc30-public-share-only-dis…
Browse files Browse the repository at this point in the history
…play-whiteboard-on-mime-match

fix: public shares check for mimetype
  • Loading branch information
hweihwang authored Oct 4, 2024
2 parents 783e8d9 + f55d827 commit 51b6c28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''

Expand Down

0 comments on commit 51b6c28

Please sign in to comment.