summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/file-manager/SecurePDFViewer.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/file-manager/SecurePDFViewer.tsx b/components/file-manager/SecurePDFViewer.tsx
index a24e2e37..704c4f24 100644
--- a/components/file-manager/SecurePDFViewer.tsx
+++ b/components/file-manager/SecurePDFViewer.tsx
@@ -192,11 +192,11 @@ export function SecurePDFViewer({ documentUrl, fileName, category, onClose }: Se
const { documentViewer, annotationManager } = instance.Core;
- if (category !== 'public') {
- // 문서 로드 완료 이벤트
- documentViewer.addEventListener('documentLoaded', async () => {
- setIsLoading(false);
+ // 문서 로드 완료 이벤트
+ documentViewer.addEventListener('documentLoaded', async () => {
+ setIsLoading(false);
+ if (category !== 'public') {
// 워터마크 추가
const watermarkText = `SHI DATAROOM\n${session?.user?.email || 'CONFIDENTIAL'}\n${new Date().toLocaleString()}`;