diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-12 18:37:43 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-12 18:37:43 -0600 |
| commit | b082b8671616ad53b5ce63fad0a22e8e1d49c5db (patch) | |
| tree | b751b9c228f689048c19dca57d5c46694e2850cb /src | |
| parent | bfc82c2f320cc7b6afcdf9eb9e73ab87e6449085 (diff) | |
| download | slskd-b082b8671616ad53b5ce63fad0a22e8e1d49c5db.tar.gz | |
don't reload window on login
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/App.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/App.js b/src/web/src/components/App.js index 902c20e7..ccecd1b2 100644 --- a/src/web/src/components/App.js +++ b/src/web/src/components/App.js @@ -89,7 +89,7 @@ class App extends Component { this.setState({ login: { ...this.state.login, pending: true, error: undefined }}, async () => { try { await session.login({ username, password, rememberMe }); - window.location.reload(); + this.setState({ login: { ...this.state.login, pending: false, error: false }}); } catch (error) { this.setState({ login: { ...this.state.login, pending: false, error }}); } |
