Skip to content

Commit fe0537d

Browse files
committed
Fix Typescript 2.0 compilation
See microsoft/TypeScript#10025.
1 parent eeaa7d2 commit fe0537d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ts/run.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,11 @@ class Launcher {
255255
}
256256

257257
if (url.match(/^\//) && location && location.protocol) {
258-
let old = url;
259258
url = location.protocol + url;
260259
}
261-
var opts = URL.parse(url) as any;
260+
let opts = URL.parse(url) as any;
262261
opts.withCredentials = false;
263-
(opts.protocol == 'https:' ? https : http).get(opts, (message:http.IncomingMessage) => {
262+
((opts.protocol == 'https:' ? https : http) as any).get(opts, (message:http.IncomingMessage) => {
264263
let success = (message.statusCode == 200);
265264
this.track("replay_load_error", {error: success ? "f" : "t"}, {statusCode: message.statusCode});
266265
if (!success) {

0 commit comments

Comments
 (0)