@@ -85,7 +85,7 @@ export default {
8585 if (state .connected ) {
8686 this .send ();
8787 } else {
88- console .log (" [Sendbox] Not connected, can't send message" );
88+ // console.log("[Sendbox] Not connected, can't send message");
8989 }
9090 return false ;
9191 }
@@ -139,7 +139,7 @@ export default {
139139 const attachment = this .pendingAttachments .shift ();
140140 await attachment .upload ;
141141
142- console .log (" [Sendbox] sending attachment:" , attachment );
142+ // console.log("[Sendbox] sending attachment:", attachment);
143143 const cpim = new CPIM (attachment .uploadedURL , attachment .file .type );
144144 if (this .groupUUID ) {
145145 cpim .headers [" Group-UUID" ] = this .groupUUID ;
@@ -154,15 +154,15 @@ export default {
154154
155155 if (this .enteredText .length > 0 ) {
156156 let message = this .getMessageData ();
157- console .log (message );
157+ // console.log(message);
158158 if (this .groupUUID ) {
159159 const url = await uploadText (this .enteredText );
160160 const cpim = new CPIM (url , " text/plain" );
161161 cpim .bodyText = this .enteredText ;
162162 if (this .groupUUID ) {
163163 cpim .headers [" Group-UUID" ] = this .groupUUID ;
164164 }
165- console .log (" outgoing cpim" , cpim );
165+ // console.log("outgoing cpim", cpim);
166166 message .contentType = " message/cpim" ;
167167 message .cpim = cpim ;
168168 message .body = cpim .serialize ();
@@ -227,7 +227,7 @@ export default {
227227 cpim .headers [" Group-UUID" ] = this .groupUUID ;
228228 }
229229
230- console .log (" [Sendbox.sendnewMessage] Outgoing CPIM" , cpim );
230+ // console.log("[Sendbox.sendnewMessage] Outgoing CPIM", cpim);
231231
232232 message .contentType = " message/cpim" ;
233233 message .cpim = cpim ;
@@ -242,12 +242,7 @@ export default {
242242 // console.log('emitting message', message);
243243 emitter .emit (" outbound-message" , message );
244244 setTimeout (
245- () =>
246- console .log (
247- " [Sendbox.sendnewMessage] duplicate send prevention timeout"
248- ),
249- 500
250- );
245+ () => console .log (" [Sendbox.sendnewMessage] duplicate send prevention timeout" ),500 );
251246 this .enteredText = " " ;
252247 }
253248 } else {
@@ -296,11 +291,7 @@ export default {
296291 },
297292 removeAttachment(attachment : PendingAttachment ) {
298293 let position = this .pendingAttachments .indexOf (attachment );
299- console .log (
300- " [Sendbox.removeAttachment] Removing attachment" ,
301- position ,
302- attachment
303- );
294+ // console.log("[Sendbox.removeAttachment] Removing attachment", position, attachment);
304295 this .pendingAttachments .splice (position , 1 );
305296 },
306297 async uploadAttachment(attachment : PendingAttachment ): Promise <void > {
@@ -312,15 +303,15 @@ export default {
312303
313304 attachment .uploadedURL = uploadTarget .download_url ;
314305
315- console .log (" [Sendbox.uploadAttachment] Uploading " , uploadTarget );
306+ // console.log("[Sendbox.uploadAttachment] Uploading ", uploadTarget);
316307 const resp = await fetch (uploadTarget .upload_url , {
317308 method: " PUT" ,
318309 body: await attachment .file .arrayBuffer (),
319310 });
320311
321312 attachment .progress = 100 ;
322313
323- console .log (" [Sendbox] uploaded: " , resp );
314+ // console.log("[Sendbox] uploaded: ", resp);
324315 } else {
325316 // alert('Attachments not supported for new conversations at this time.')
326317 }
@@ -356,7 +347,7 @@ export default {
356347 },
357348 onPaste(e : ClipboardEvent ) {
358349 var items = e .clipboardData .items ;
359- console .log (JSON .stringify (items )); // will give you the mime types
350+ // console.log(JSON.stringify(items)); // will give you the mime types
360351 for (const item of items ) {
361352 switch (item .type ) {
362353 case " image/png" :
@@ -397,10 +388,7 @@ export default {
397388 case " text/plain" :
398389 continue ;
399390 default :
400- console .log (
401- " [Sendbox.onPaste] Discarding clipboard data of unknown type:" ,
402- item
403- );
391+ // console.log("[Sendbox.onPaste] Discarding clipboard data of unknown type:", item);
404392 }
405393 }
406394 },
@@ -422,7 +410,7 @@ export default {
422410 }
423411 };
424412 emitter .on (" dropup-selection-recieved" , (payload : String ) => {
425- console .log (" [Sendbox] Selection Recieved. You selected: " + payload );
413+ // console.log("[Sendbox] Selection Recieved. You selected: " + payload);
426414 this .enteredText = payload ;
427415 });
428416 emitter .on (
0 commit comments