add logging to take picture on mobile

This commit is contained in:
Peter Maquiran
2024-07-29 09:35:00 +01:00
parent 4cf87b809d
commit 49a249ce72
2 changed files with 6 additions and 8 deletions
@@ -760,8 +760,6 @@ export class NewPublicationPage implements OnInit {
this.filecontent = true;
if (this.removeTextBeforeSlash(element.mimeType, '/') == "mp4") {
tracing.log("capture file from gallery", { base64: content.data })
const newAttachment = new PublicationAttachmentEntity(
{
base64: content.data,
@@ -779,8 +777,8 @@ export class NewPublicationPage implements OnInit {
} else {
this.capturedImage = 'data:image/jpeg;base64,' + content.data;
tracing.log("capture file from gallery", { base64: content.data })
this.showCroppModal()
tracing.hasError('failed to capture file from gallery')
tracing.finish()
/* const newAttachment = new PublicationAttachmentEntity(
{