aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormadelinegr <mgriswold99@gmail.com>2019-02-18 18:01:47 -0500
committermadelinegr <mgriswold99@gmail.com>2019-02-18 18:01:47 -0500
commit281f6268238c4f9f1640899ce258535ad4fe2401 (patch)
tree40cc489c27aa268873825d727047bdfde01855bf
parent837509322d7e556830c57653828e223b06eb38a6 (diff)
tried to get around cors with crossorigin.me
-rw-r--r--src/client/views/Main.tsx2
-rw-r--r--src/client/views/nodes/WebBox.tsx2
-rw-r--r--src/fields/WebField.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index 3e5118379..f310be950 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -79,7 +79,7 @@ document.addEventListener("pointerdown", action(function (e: PointerEvent) {
// mainNodes.Data.push(doc2);
mainNodes.Data.push(doc6);
- let doc9 = Documents.WebDocument("https://cs.brown.edu/", {
+ let doc9 = Documents.WebDocument("https://crossorigin.me/https://google.com", {
x: 450, y: 100, title: "cat 1", width: 606, height: 386, nativeWidth: 606, nativeHeight: 386
});
mainNodes.Data.push(doc9);
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx
index f50f8c60e..b9d0853b9 100644
--- a/src/client/views/nodes/WebBox.tsx
+++ b/src/client/views/nodes/WebBox.tsx
@@ -62,7 +62,7 @@ export class WebBox extends React.Component<FieldViewProps> {
render() {
let field = this.props.doc.Get(this.props.fieldKey);
let path = field == FieldWaiting ? "https://image.flaticon.com/icons/svg/66/66163.svg" :
- field instanceof WebField ? field.Data.href : "https://cs.brown.edu/";
+ field instanceof WebField ? field.Data.href : "https://crossorigin.me/" + "https://cs.brown.edu";
let nativeWidth = this.props.doc.GetNumber(KeyStore.NativeWidth, 1);
return (
diff --git a/src/fields/WebField.ts b/src/fields/WebField.ts
index 88e6130e0..cd3519128 100644
--- a/src/fields/WebField.ts
+++ b/src/fields/WebField.ts
@@ -3,7 +3,7 @@ import { Field } from "./Field";
export class WebField extends BasicField<URL> {
constructor(data: URL | undefined = undefined) {
- super(data == undefined ? new URL("https://cs.brown.edu/") : data);
+ super(data == undefined ? new URL("https://crossorigin.me/" + "https://cs.brown.edu/") : data);
}
toString(): string {