diff options
author | bobzel <zzzman@gmail.com> | 2020-10-22 10:16:19 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-22 10:16:19 -0400 |
commit | 4609f550fcc8c3e9c7fd176faa80671d0b55d427 (patch) | |
tree | 31cdd61555bf5030d9d2a3dd7425f85dea2df54a /src/client/views/nodes/WebBox.tsx | |
parent | d09cf7ce455a45ad6a5e3e7096177bc500677bde (diff) |
fixed warnings
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 168fee807..787718aa0 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 as any).href; if (href) { this._url = href.replace(Utils.prepend(""), Cast(this.dataDoc[this.fieldKey], WebField, null)?.url.origin); this.submitURL(); |