aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/docx/body-reader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/docx/body-reader.js b/lib/docx/body-reader.js
index 71c9855..7b7f6f2 100644
--- a/lib/docx/body-reader.js
+++ b/lib/docx/body-reader.js
@@ -209,7 +209,7 @@ function BodyReader(options) {
var anchor = element.attributes["w:anchor"];
return readXmlElements(element.children).map(function(children) {
function create(options) {
- var targetFrame = element.attributes["w:tgtFrame"];
+ var targetFrame = element.attributes["w:tgtFrame"] || null;
return new documents.Hyperlink(
children,