Skip to content

Commit

Permalink
Don't expect HTML element with ID mimetype in public share
Browse files Browse the repository at this point in the history
If the share is password-protected, the authentication page doesn't have
the property set yet.

Fixes: #3816

Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- authored and backportbot-nextcloud[bot] committed Jun 7, 2023
1 parent 0fe5d70 commit af7a094
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const loadEditor = ({ sharingToken, mimetype, $el }) => {
}

documentReady(() => {
const mimetype = document.getElementById('mimetype').value
const sharingToken = document.getElementById('sharingToken') ? document.getElementById('sharingToken').value : null

if (!sharingToken) {
Expand Down

0 comments on commit af7a094

Please sign in to comment.