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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2020-10-13 20:41:02 +0300
committerJan Holesovsky <kendy@collabora.com>2020-10-13 23:29:21 +0300
commit8e19f5bc3f7a2544770ebee2fd3c12c092cda5e9 (patch)
tree6142180a053f6db3411d60a80ea14521e78e84b8 /src
parent9c07edf03c40b5eaa57e9ef4c755cd29bf0cf0b6 (diff)
The mobile apps need to handle the hyperlinks themselves.
Otherwise the apps hang when the webkit attempts to open a new window. Signed-off-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'src')
-rw-r--r--src/document.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/document.js b/src/document.js
index a0edb651..7aa4ac91 100644
--- a/src/document.js
+++ b/src/document.js
@@ -362,6 +362,8 @@ const documentsMain = {
callMobileMessage('insertGraphic')
} else if (msgId === 'UI_Share') {
callMobileMessage('share')
+ } else if (msgId === 'UI_Hyperlink') {
+ callMobileMessage('hyperlink', args)
}
// Fallback to web UI for SaveAs, otherwise ignore other post messages
if (msgId !== 'UI_SaveAs') {
@@ -422,6 +424,12 @@ const documentsMain = {
// Tell the LOOL iframe that we are ready now
PostMessages.sendWOPIPostMessage('loolframe', 'Host_PostmessageReady', {})
+
+ // In the mobile apps, don't let Collabora Online handle the
+ // hyperlinks, instead do that in the apps
+ if (isMobileInterfaceAvailable()) {
+ PostMessages.sendWOPIPostMessage('loolframe', 'Disable_Default_UIAction', { action: 'UI_Hyperlink', disable: true })
+ }
})
// submit that