Fix upload socket connection

This commit is contained in:
Dane Everitt 2016-01-01 18:13:34 -05:00
parent 46117afc77
commit 445d0eaa8d

View file

@ -64,7 +64,7 @@ $(window).load(function () {
var newFileContents; var newFileContents;
@can('upload-files', $server) @can('upload-files', $server)
var client = new BinaryClient('wss://{{ $node->fqdn }}:{{ $node->daemonListen }}/upload/', { var client = new BinaryClient('{{ $node->scheme === 'https' ? 'wss' : 'ws' }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/upload/', {
chunkSize: 40960 chunkSize: 40960
}); });
// Wait for connection to BinaryJS server // Wait for connection to BinaryJS server