From ec5037c01868fecaec2eba89b975f3e53aded89a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 30 Apr 2016 17:20:53 +0100 Subject: Export from java-mammoth 5f538798b147f0e76 --- Mammoth/mammoth.edge.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 Mammoth/mammoth.edge.js (limited to 'Mammoth/mammoth.edge.js') 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 -- cgit v1.2.3