| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
lgtm thank you! Adding Samiya as external contributions need 2 reviews
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thank you for sending this CL! Left 1 small comment.
event.preventDefault();
const files = event.dataTransfer?.files;
if (!files || files.length === 0) {
return;
}
const imageFile = Array.from(files).find(file => file.type.startsWith('image/'));
if (!imageFile) {
return;
}
void this.#handleLoadImage(imageFile);Since this block of code is similar to code in `#handleImagePaste`, maybe we can refactor this into a function like `#handleImageDataTransferEvent(dataTransfer: DataTransfer | null, event: Event)`?
Also, nit: add `;` at the end of `#handleImageDragOver` and `#handleImageDrop`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
event.preventDefault();
const files = event.dataTransfer?.files;
if (!files || files.length === 0) {
return;
}
const imageFile = Array.from(files).find(file => file.type.startsWith('image/'));
if (!imageFile) {
return;
}
void this.#handleLoadImage(imageFile);Since this block of code is similar to code in `#handleImagePaste`, maybe we can refactor this into a function like `#handleImageDataTransferEvent(dataTransfer: DataTransfer | null, event: Event)`?
Also, nit: add `;` at the end of `#handleImageDragOver` and `#handleImageDrop`.
The patchset 3 has been uploaded. Now, we are using handleImageDataTransferEvent to handle handleImageDragOver, handleImageDrop and handleImagePaste.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |