@colijnit/mainapi 259.1.2 → 259.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main-public.js +6 -2
- package/package.json +1 -1
package/build/main-public.js
CHANGED
|
@@ -330,8 +330,12 @@ class MainPublic extends main_api_connection_1.MainApiConnection {
|
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
getImageForCoDocument(document, thumb = false) {
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
if (document) {
|
|
334
|
+
const type = document.documentType;
|
|
335
|
+
const fileType = document.fileType;
|
|
336
|
+
const hasPublicAccess = document.hasPublicAccess;
|
|
337
|
+
return this._handleCoDocumentRequest(type, fileType, hasPublicAccess, document.documentId, document.mimeTypeInternal, thumb, document.filePath);
|
|
338
|
+
}
|
|
335
339
|
}
|
|
336
340
|
createServiceRequestData() {
|
|
337
341
|
const data = { languageCode: this.languageCode };
|