1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-16 02:27:00 +02:00

add function to copy data to drag transfer event (#51)

This commit is contained in:
Veit-Hendrik Schlenker 2019-10-20 03:14:53 +02:00 committed by Kyle Spearrin
parent 669f6ddf93
commit 2c45978286

View File

@ -175,6 +175,10 @@ export class ViewComponent implements OnDestroy, OnInit {
}
}
setTextDataOnDrag(event: DragEvent, data: string) {
event.dataTransfer.setData('text', data);
}
async downloadAttachment(attachment: AttachmentView) {
const a = (attachment as any);
if (a.downloading) {