Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

Commit

Permalink
use page scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmota committed May 8, 2017
1 parent 6556f33 commit ef2cee9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions static/scripts/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -9149,8 +9149,8 @@ const base64Mime = require('base64mime');
const base64ToBlob = require('base64toblob');

const wsPort = 8957;
const {pathname, hostname} = window.location;
const stream = shoe(`http://${hostname}:8957${pathname}___`);
const {pathname, hostname, protocol} = window.location;
const stream = shoe(`${protocol}//${hostname}:8957${pathname}___`);

const log = document.querySelector(`#log`);
const form = document.querySelector(`#form`);
Expand Down
4 changes: 2 additions & 2 deletions static/scripts/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const base64Mime = require('base64mime');
const base64ToBlob = require('base64toblob');

const wsPort = 8957;
const {pathname, hostname} = window.location;
const stream = shoe(`http://${hostname}:8957${pathname}___`);
const {pathname, hostname, protocol} = window.location;
const stream = shoe(`${protocol}//${hostname}:8957${pathname}___`);

const log = document.querySelector(`#log`);
const form = document.querySelector(`#form`);
Expand Down

0 comments on commit ef2cee9

Please sign in to comment.