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

@@ -85237,7 +85237,7 @@ var addTorrentPopup = function (_React$Component) {
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = addTorrentPopup.__proto__ || Object.getPrototypeOf(addTorrentPopup)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
open: false,
magnetLinkValue: "",
storageValue: ""
storageValue: ''
}, _this.handleClickOpen = function () {
_this.setState({ open: true });
@@ -93502,7 +93502,7 @@ var addTorrentFilePopup = function (_React$Component) {
open: false,
torrentFileName: "",
torrentFileValue: [],
storageValue: "",
storageValue: '', //raw string for possible windows filepath
showDrop: true
}, _this.handleClickOpen = function () {
_this.setState({ open: true });
@@ -93526,7 +93526,7 @@ var addTorrentFilePopup = function (_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 });
};
}, _this.onFileLoad = function (file) {
_this.setState({ torrentFileName: file[0].name });