diff --git a/frontend/src/views/Project.vue b/frontend/src/views/Project.vue index b05a107..c2f8298 100644 --- a/frontend/src/views/Project.vue +++ b/frontend/src/views/Project.vue @@ -6,7 +6,7 @@ class="preview-iframe" sandbox="allow-scripts allow-same-origin allow-forms" > -
+
@@ -111,6 +111,10 @@ const documentVisible = ref(false); const currentDocument = ref(null); const previewUrl = ref(''); +const isInIframe = computed(() => { + return window.self !== window.top; +}); + const canEdit = computed(() => { if (!project.value) return false; return userStore.isAuthenticated &&