Skip to content

Commit 2113977

Browse files
authored
Revert "add xml support for file attachments (#246)"
This reverts commit fab344a.
1 parent fab344a commit 2113977

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/fileAttachment.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@ class AbstractFile {
6464
const [JSZip, buffer] = await Promise.all([requireDefault(jszip.resolve()), this.arrayBuffer()]);
6565
return new ZipArchive(await JSZip.loadAsync(buffer));
6666
}
67-
async xml(mimeType = "application/xml") {
68-
return (new DOMParser).parseFromString(await this.text(), mimeType);
69-
}
70-
async html() {
71-
return this.xml("text/html");
72-
}
7367
}
7468

7569
class FileAttachment extends AbstractFile {

0 commit comments

Comments
 (0)