Fix send params to frame

This commit is contained in:
Julia Radzhabova
2023-12-26 15:54:55 +03:00
parent ad17c4b7ec
commit 0c72e11265
11 changed files with 75 additions and 68 deletions

View File

@ -229,10 +229,6 @@
margin = (customer !== '') ? 50 : 20,
loading = 'Loading...',
logo = params["logo"] ? ((params["logo"] !== 'none') ? ('<img src="' + encodeUrlParam(params["logo"]) + '" class="loader-logo" />') : '') : null,
directUrl = params["directUrl"] ? encodeUrlParam(params["directUrl"]) : null,
url = params["url"] ? encodeUrlParam(params["url"]) : null,
fileKey = params["key"] || '',
token = params["token"] || '',
isForm = params["isForm"];
window.frameEditorId = params["frameEditorId"];
@ -342,7 +338,7 @@
document.body.appendChild(script);
}
if (isForm===undefined) {
checkExtendedPDF(directUrl, fileKey, url, token, function (isform) {
listenApiMsg(function (isform) {
window.isPDFForm = !!isform;
startApp();
});