diff options
Diffstat (limited to 'lib/docx/relationships-reader.js')
| -rw-r--r-- | lib/docx/relationships-reader.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/docx/relationships-reader.js b/lib/docx/relationships-reader.js index 7747bda..93fc618 100644 --- a/lib/docx/relationships-reader.js +++ b/lib/docx/relationships-reader.js @@ -1,9 +1,9 @@ exports.readRelationships = readRelationships; -function readRelationships(relationshipsXml) { +function readRelationships(element) { var relationships = {}; - relationshipsXml.root.children.forEach(function(child) { + element.children.forEach(function(child) { if (child.name === "{http://schemas.openxmlformats.org/package/2006/relationships}Relationship") { relationships[child.attributes.Id] = { target: child.attributes.Target |
