Skip to content

Commit

Permalink
Login: Fix problem with default url of rclone backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
negative0 committed Aug 12, 2019
1 parent e169b24 commit 2e2f0d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/Pages/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Login extends Component {

constructor(props) {
super(props);
let ipAddress = "http://localhost:5572/";
let ipAddress = window.location.href.split("/#")[0];
if (localStorage.getItem(IP_ADDRESS_KEY))
ipAddress = localStorage.getItem(IP_ADDRESS_KEY);
this.state = {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Pages/Login/__snapshots__/Login.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ exports[`Remote Explorer Layout renders should match snapshot 1`] = `
onChange={[Function]}
placeholder="IP Address / URL"
type="text"
value="http://localhost:5572/"
value="http://localhost/"
/>
</InputGroup>
<InputGroup
Expand Down

0 comments on commit 2e2f0d2

Please sign in to comment.