From 1a4a4e5a238c9e3793cf88d5293bb69a3ebb5ca7 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Wed, 8 Jan 2020 10:36:02 +0100 Subject: Missing () in condition --- src/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/document.js b/src/document.js index f0f86bd7..515243c6 100644 --- a/src/document.js +++ b/src/document.js @@ -197,7 +197,7 @@ const documentsMain = { PostMessages.unregisterPostMessageHandler(editorInitListener) // Hide buttons when using the mobile app integration - if (isDirectEditing) { + if (isDirectEditing()) { PostMessages.sendWOPIPostMessage('loolframe', 'Hide_Button', { id: 'fullscreen' }) PostMessages.sendWOPIPostMessage('loolframe', 'Hide_Menu_Item', { id: 'fullscreen' }) } -- cgit v1.2.3