mirror of
https://github.com/bitwarden/browser
synced 2025-01-04 14:22:50 +01:00
add function to copy data to drag transfer event (#51)
This commit is contained in:
parent
669f6ddf93
commit
2c45978286
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user