diff options
Diffstat (limited to 'lib/docx/content-types-reader.js')
| -rw-r--r-- | lib/docx/content-types-reader.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/docx/content-types-reader.js b/lib/docx/content-types-reader.js index 5364b87..8233119 100644 --- a/lib/docx/content-types-reader.js +++ b/lib/docx/content-types-reader.js @@ -13,11 +13,11 @@ var fallbackContentTypes = { exports.defaultContentTypes = contentTypes({}, {}); -function readContentTypesFromXml(xml) { +function readContentTypesFromXml(element) { var extensionDefaults = {}; var overrides = {}; - xml.root.children.forEach(function(child) { + element.children.forEach(function(child) { if (child.name === "content-types:Default") { extensionDefaults[child.attributes.Extension] = child.attributes.ContentType; } |
