diff options
author | bobzel <zzzman@gmail.com> | 2020-10-22 10:27:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 10:27:29 -0400 |
commit | 7fd08ddfa6e4421d71a46014610c6b85dd40fa08 (patch) | |
tree | 472645b549bfc8925ab6000d08dab3ce9a7a84ec /src/client/views/nodes/WebBox.tsx | |
parent | 93ff528ebce3ac970fa7a5d299fd3bfbc2ee021e (diff) | |
parent | 426094fa4dfbdab19b2cb99daf90438e884094b1 (diff) |
Merge pull request #898 from browngraphicslab/presentation_v1
Presentation v1
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..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(); |