diff --git a/src/document.js b/src/document.js
index 20cd1d868b..1ddc440ed9 100644
--- a/src/document.js
+++ b/src/document.js
@@ -11,6 +11,7 @@ import Config from './services/config.tsx'
import { getUIDefaults, generateCSSVarTokens, getCollaboraTheme } from './helpers/coolParameters.js'
import { enableScrollLock } from './helpers/safariFixer.js'
import PostMessageService from './services/postMessage.tsx'
+import { getCapabilities } from './services/capabilities.ts'
import {
callMobileMessage,
isDirectEditing,
@@ -171,7 +172,7 @@ const documentsMain = {
+ ''
// iframe that contains the Collabora Online Viewer
- const frame = ''
+ const frame = ''
$('#revViewer').append(form)
$('#revViewer').append(frame)
@@ -231,7 +232,7 @@ const documentsMain = {
+ ''
// iframe that contains the Collabora Online
- const frame = ''
+ const frame = ''
$('#mainContainer').append(form)
$('#mainContainer').append(frame)
diff --git a/src/view/Office.vue b/src/view/Office.vue
index cd6304c6e0..ea39a9c5e3 100644
--- a/src/view/Office.vue
+++ b/src/view/Office.vue
@@ -64,7 +64,8 @@
allow="clipboard-read *; clipboard-write *"
class="office-viewer__iframe"
:style="{visibility: showIframe ? 'visible' : 'hidden' }"
- :src="iframeSrc" />
+ :src="iframeSrc"
+ :title="iframeTitle" />
{{ t('richdocuments', 'Edit') }}
@@ -194,6 +195,9 @@ export default {
showIframe() {
return this.loading >= LOADING_STATE.FRAME_READY || this.debug
},
+ iframeTitle() {
+ return loadState('richdocuments', 'productName', 'Nextcloud Office')
+ },
showLoadingIndicator() {
return this.loading < LOADING_STATE.FRAME_READY
},