diff options
| author | Michael Williamson <mike@zwobble.org> | 2017-05-30 11:33:42 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2017-05-30 11:33:42 +0100 |
| commit | e7d903d254f0feecc4db3adc4d4d3e20aa61bd85 (patch) | |
| tree | e94d8335eb2f6ecbd26af9522bd958b5aea72f4e /lib | |
| parent | 9545703e5e3cd3f0cbce363eda1d2c92e4eb0da0 (diff) | |
Set target frame to null when empty string
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/docx/body-reader.js | 2 |
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, |
