Permalink
Browse files

Allow re-writing of protocol for websocket with https and file schemes

  • Loading branch information...
1 parent b62cf60 commit a9dff55664f419dd8c51247de6131c77926f9a7f @revmischa committed Mar 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 share/hippie.js
View
@@ -8,7 +8,7 @@ var Hippie = function(host, arg, on_connect, on_disconnect, on_event, path) {
this.detect();
if (!host.match('://')) {// protcol not provided
- host = document.location.protocol.replace(/http/, 'ws') + '//' + host;
+ host = document.location.protocol.replace(/(file|https?)/, 'ws') + '//' + host;
}
var that = this;

0 comments on commit a9dff55

Please sign in to comment.