Fix upload socket connection
This commit is contained in:
parent
46117afc77
commit
445d0eaa8d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue