blob: cd3519128ce037c725f3a82b585e6b2aed033393 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { BasicField } from "./BasicField";
import { Field } from "./Field";
export class WebField extends BasicField<URL> {
constructor(data: URL | undefined = undefined) {
super(data == undefined ? new URL("https://crossorigin.me/" + "https://cs.brown.edu/") : data);
}
toString(): string {
return this.Data.href;
}
ToScriptString(): string {
return `new WebField("${this.Data}")`;
}
Copy(): Field {
return new WebField(this.Data);
}
}
|