aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/WebBox.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-21 23:40:48 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-21 23:40:48 -0400
commit393d351420b3a0d28f4cd1ea8b674fa5d04bfcde (patch)
tree27f663e4e034949d742294259e021e9826fb0631 /src/client/views/nodes/WebBox.tsx
parentfd5c4f18d0af6571508f142ca400e6d752f19800 (diff)
More fixes
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r--src/client/views/nodes/WebBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx
index e3b6e1c05..63778fa50 100644
--- a/src/client/views/nodes/WebBox.tsx
+++ b/src/client/views/nodes/WebBox.tsx
@@ -4,7 +4,7 @@ import { FieldViewProps, FieldView } from './FieldView';
import { observer } from "mobx-react";
import { computed } from 'mobx';
import { HtmlField } from "../../../new_fields/HtmlField";
-import { URLField } from "../../../new_fields/URLField";
+import { WebField } from "../../../new_fields/URLField";
@observer
export class WebBox extends React.Component<FieldViewProps> {
@@ -37,7 +37,7 @@ export class WebBox extends React.Component<FieldViewProps> {
let view;
if (field instanceof HtmlField) {
view = <span id="webBox-htmlSpan" dangerouslySetInnerHTML={{ __html: field.html }} />
- } else if (field instanceof URLField) {
+ } else if (field instanceof WebField) {
view = <iframe src={field.url.href} style={{ position: "absolute", width: "100%", height: "100%" }} />
} else {
view = <iframe src={"https://crossorigin.me/https://cs.brown.edu"} style={{ position: "absolute", width: "100%", height: "100%" }} />