diff options
author | bobzel <zzzman@gmail.com> | 2020-10-22 10:24:29 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-22 10:24:29 -0400 |
commit | df6c56c3b9d527a0b6e7f79c09cb19ec2484feec (patch) | |
tree | d2e39fc42e300310443aded9676a32b83db6ca1c /src/client/views/nodes/WebBox.tsx | |
parent | 4609f550fcc8c3e9c7fd176faa80671d0b55d427 (diff) |
minor code cleanup
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index 787718aa0..de5546fa9 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -83,7 +83,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<FieldViewProps, WebDocum if (iframe && iframe.contentDocument) { iframe.setAttribute("enable-annotation", "true"); iframe.contentDocument.addEventListener("click", undoBatch(action(e => { - const href = (e.target as any).href; + const href = e.target?.href; if (href) { this._url = href.replace(Utils.prepend(""), Cast(this.dataDoc[this.fieldKey], WebField, null)?.url.origin); this.submitURL(); |