Merge pull request #1140 from ONLYOFFICE/fix/bugfix

Revert "[DE] Show full version of  viewer for fill form mode"
This commit is contained in:
Julia Radzhabova 2021-08-31 15:19:03 +03:00 committed by GitHub
commit daacb45cea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -873,7 +873,8 @@
path += app + "/";
path += (config.type === "mobile" || isSafari_mobile)
? "mobile"
: (config.type === "embedded")
: (config.type === "embedded" || (app=='documenteditor') && config.document && config.document.permissions && (config.document.permissions.fillForms===true) &&
(config.document.permissions.edit === false) && (config.document.permissions.review !== true) && (config.editorConfig.mode !== 'view'))
? "embed"
: "main";