Skip to content

Commit 242188f

Browse files
Fix protocol handler in URL function
1 parent 722adee commit 242188f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocklypropclient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var clientService = {
9595
activeConnection: null,
9696
*/
9797
url: function (location, protocol) {
98-
return (protocol || window.location.protocol) + '://' + this.path + ':' + this.port + '/' + (location || '');
98+
return (protocol || window.location.protocol.replace(':', '')) + '://' + this.path + ':' + this.port + '/' + (location || '');
9999
},
100100
version: {
101101
// Constants

0 commit comments

Comments
 (0)