Changing how filepath is handled for Windows

This commit is contained in:
2018-01-20 17:16:13 -05:00
parent c87443ca40
commit 83a03b3ef6
7 changed files with 69 additions and 39 deletions

View File

@@ -44,7 +44,7 @@ export default class addTorrentFilePopup extends React.Component {
open: false,
torrentFileName: "",
torrentFileValue: [],
storageValue: "",
storageValue: ``, //raw string for possible windows filepath
showDrop: true,
};
@@ -74,7 +74,7 @@ export default class addTorrentFilePopup extends React.Component {
}
console.log("Sending magnet link: ", torrentFileMessage);
ws.send(JSON.stringify(torrentFileMessage));
this.setState({torrentFileName: "", storageValue: "", torrentFileValue: [], showDrop: true})
this.setState({torrentFileName: "", storageValue: ``, torrentFileValue: [], showDrop: true})
}
}

View File

@@ -36,7 +36,7 @@ export default class addTorrentPopup extends React.Component {
state = {
open: false,
magnetLinkValue: "",
storageValue: "",
storageValue: ``,
};