commit
fdd5eb3f5d
|
@ -53,7 +53,7 @@ class AddTorrent extends Component {
|
|||
console.log(socket);
|
||||
const a = document.createElement('a');
|
||||
a.href = socket.uri;
|
||||
const url = (a.protocol === "ws:" ? "http://" : "https://") + a.host;
|
||||
const url = (a.protocol === "ws:" ? "http://" : "https://") + a.host + a.pathname;
|
||||
try {
|
||||
const resp = await fetch(url,
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ class ConnectionOverlay extends Component {
|
|||
const password = localStorage.getItem("password");
|
||||
this.state = {
|
||||
uri: uri || "ws://127.0.0.1:8412",
|
||||
password: null,
|
||||
password,
|
||||
autoconnect: !!uri
|
||||
};
|
||||
if (uri) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user