We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4baaa3d + 66694e4 commit 8d0c6d0Copy full SHA for 8d0c6d0
src/file-attachment-element.ts
@@ -1,6 +1,6 @@
1
import Attachment from './attachment'
2
3
-class FileAttachmentElement extends HTMLElement {
+export default class FileAttachmentElement extends HTMLElement {
4
constructor() {
5
super()
6
this.addEventListener('dragenter', onDragenter)
@@ -48,13 +48,6 @@ class FileAttachmentElement extends HTMLElement {
48
}
49
50
51
-export default FileAttachmentElement
52
-
53
-if (!window.customElements.get('file-attachment')) {
54
- window.FileAttachmentElement = FileAttachmentElement
55
- window.customElements.define('file-attachment', FileAttachmentElement)
56
-}
57
58
function hasFile(transfer: DataTransfer): boolean {
59
return Array.from(transfer.types).indexOf('Files') >= 0
60
0 commit comments