File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class IFrameWidget extends Widget {
49
49
50
50
// TODO proxy path if necessary
51
51
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 ) {
53
53
// tslint:disable-next-line: no-console
54
54
console . log ( "site accesible: proceeding" ) ;
55
55
iframe . src = path ;
@@ -69,10 +69,8 @@ class IFrameWidget extends Widget {
69
69
// tslint:disable-next-line: no-console
70
70
path = "iframes/proxy?path=" + encodeURI ( path ) ;
71
71
iframe . src = path ;
72
+ // tslint:disable-next-line: no-console
72
73
console . log ( "setting proxy for " + path ) ;
73
- iframe . onload = ( ev : Event ) => {
74
- console . log ( ev ) ;
75
- }
76
74
}
77
75
}
78
76
} ) ;
You can’t perform that action at this time.
0 commit comments