Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/isPublicPage.js')
-rw-r--r--src/utils/isPublicPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/isPublicPage.js b/src/utils/isPublicPage.js
index 5ce9c89..4754d43 100644
--- a/src/utils/isPublicPage.js
+++ b/src/utils/isPublicPage.js
@@ -22,4 +22,4 @@
*/
const isPublicElmt = document.getElementById('isPublic')
-export default () => isPublicElmt && isPublicElmt.value === '1'
+export default () => !!(isPublicElmt && isPublicElmt.value === '1')