Skip to content

Commit

Permalink
Handle replay urls without protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Jun 18, 2016
1 parent c16b3b0 commit 05d8682
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ts/run.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ class Launcher {
preloader.consume();
}

if(url.match(/^\//) && location && location.protocol) {
let old = url;
url = location.protocol + url;
}
var opts = URL.parse(url) as any;
opts.withCredentials = false;
var request = (opts.protocol == 'https:' ? https : http).get(opts);
Expand Down

0 comments on commit 05d8682

Please sign in to comment.