aboutsummaryrefslogtreecommitdiff
path: root/Mammoth/mammoth.edge.js
diff options
context:
space:
mode:
Diffstat (limited to 'Mammoth/mammoth.edge.js')
-rw-r--r--Mammoth/mammoth.edge.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/Mammoth/mammoth.edge.js b/Mammoth/mammoth.edge.js
deleted file mode 100644
index fe0202b..0000000
--- a/Mammoth/mammoth.edge.js
+++ /dev/null
@@ -1,18 +0,0 @@
-;
-return function(data, callback) {
- var mammoth = module.exports;
-
- mammoth.convertToHtml({arrayBuffer: toArrayBuffer(data)})
- .then(function(result) {
- callback(null, result);
- }, callback);
-
- function toArrayBuffer(buffer) {
- var ab = new ArrayBuffer(buffer.length);
- var view = new Uint8Array(ab);
- for (var i = 0; i < buffer.length; ++i) {
- view[i] = buffer[i];
- }
- return ab;
- }
-}; \ No newline at end of file