From 62d4814ead3a07c6238275b9c58dc5e487a47be8 Mon Sep 17 00:00:00 2001 From: Ilya Oleshko Date: Wed, 21 Aug 2024 14:20:36 +0300 Subject: [PATCH] Fixed Bug 69784: JS-SDK: Added file flag for shared files at editor and viewer modes --- public/scripts/sdk/1.0.1/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/sdk/1.0.1/api.js b/public/scripts/sdk/1.0.1/api.js index 5afb063a09..c36a129bdf 100644 --- a/public/scripts/sdk/1.0.1/api.js +++ b/public/scripts/sdk/1.0.1/api.js @@ -489,7 +489,7 @@ path = `/doceditor/?fileId=${config.id}&editorType=${config.editorType}&editorGoBack=${goBack}&customization=${customization}`; if (config.requestToken) { - path = `${path}&share=${config.requestToken}`; + path = `${path}&share=${config.requestToken}&is_file=true`; } break; @@ -515,7 +515,7 @@ path = `/doceditor/?fileId=${config.id}&editorType=${config.editorType}&action=view&editorGoBack=${goBack}&customization=${customization}`; if (config.requestToken) { - path = `${path}&share=${config.requestToken}`; + path = `${path}&share=${config.requestToken}&is_file=true`; } break;