Skip to content

Commit 06a1f5d

Browse files
committed
fix lint
1 parent 56d8a83 commit 06a1f5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class IFrameWidget extends Widget {
4949

5050
// TODO proxy path if necessary
5151
request("get", path).then((res: IRequestResult) => {
52-
if (res.ok && res.headers.indexOf('Access-Control-Allow-Origin') < 0) {
52+
if (res.ok && res.headers.indexOf("Access-Control-Allow-Origin") < 0) {
5353
// tslint:disable-next-line: no-console
5454
console.log("site accesible: proceeding");
5555
iframe.src = path;
@@ -69,10 +69,8 @@ class IFrameWidget extends Widget {
6969
// tslint:disable-next-line: no-console
7070
path = "iframes/proxy?path=" + encodeURI(path);
7171
iframe.src = path;
72+
// tslint:disable-next-line: no-console
7273
console.log("setting proxy for " + path);
73-
iframe.onload = (ev: Event)=>{
74-
console.log(ev);
75-
}
7674
}
7775
}
7876
});

0 commit comments

Comments
 (0)