mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 09:02:28 +01:00
Fix upload socket connection
This commit is contained in:
parent
46117afc77
commit
445d0eaa8d
@ -64,7 +64,7 @@ $(window).load(function () {
|
||||
var newFileContents;
|
||||
|
||||
@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
|
||||
});
|
||||
// Wait for connection to BinaryJS server
|
||||
|
Loading…
Reference in New Issue
Block a user