nodejs: Fix Bug 63800 template image (9048082cb7)

This commit is contained in:
Sergey Linnik
2023-08-24 16:03:33 +03:00
parent 561af8444c
commit 4064f73c89

View File

@ -389,14 +389,14 @@ DocManager.prototype.getTemplateImageUrl = function getTemplateImageUrl(fileType
}
if (fileType === fileUtility.fileType.cell) { // for cell type
return `${path}/images/file_xlsx.svg`;
return `${serverUrl}/images/file_xlsx.svg`;
}
if (fileType === fileUtility.fileType.slide) { // for slide type
return `${path}/images/file_pptx.svg`;
return `${serverUrl}/images/file_pptx.svg`;
}
return `${path}/images/file_docx.svg`; // the default value
return `${serverUrl}/images/file_docx.svg`; // the default value
};
// get document key