@github/file-attachment-element
Advanced tools
Comparing version 1.0.0 to 1.0.1
import Attachment from './attachment'; | ||
declare class FileAttachmentElement extends HTMLElement { | ||
export default class FileAttachmentElement extends HTMLElement { | ||
constructor(); | ||
@@ -8,2 +8,1 @@ get directory(): boolean; | ||
} | ||
export default FileAttachmentElement; |
import Attachment from './attachment'; | ||
class FileAttachmentElement extends HTMLElement { | ||
export default class FileAttachmentElement extends HTMLElement { | ||
constructor() { | ||
@@ -40,7 +40,2 @@ super(); | ||
} | ||
export default FileAttachmentElement; | ||
if (!window.customElements.get('file-attachment')) { | ||
window.FileAttachmentElement = FileAttachmentElement; | ||
window.customElements.define('file-attachment', FileAttachmentElement); | ||
} | ||
function hasFile(transfer) { | ||
@@ -47,0 +42,0 @@ return Array.from(transfer.types).indexOf('Files') >= 0; |
@@ -159,6 +159,2 @@ class Attachment { | ||
} | ||
if (!window.customElements.get('file-attachment')) { | ||
window.FileAttachmentElement = FileAttachmentElement; | ||
window.customElements.define('file-attachment', FileAttachmentElement); | ||
} | ||
function hasFile(transfer) { | ||
@@ -165,0 +161,0 @@ return Array.from(transfer.types).indexOf('Files') >= 0; |
@@ -165,6 +165,2 @@ (function (global, factory) { | ||
} | ||
if (!window.customElements.get('file-attachment')) { | ||
window.FileAttachmentElement = FileAttachmentElement; | ||
window.customElements.define('file-attachment', FileAttachmentElement); | ||
} | ||
function hasFile(transfer) { | ||
@@ -171,0 +167,0 @@ return Array.from(transfer.types).indexOf('Files') >= 0; |
{ | ||
"name": "@github/file-attachment-element", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Attach files via drag and drop or file input.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.umd.js", |
29262
766