This commit is contained in:
Feross Aboukhadijeh
2020-10-29 11:30:07 -10:00
parent 630ed76b8c
commit a20f82cc61
2 changed files with 51 additions and 98 deletions

View File

@@ -130,7 +130,10 @@ function onState (err, _state) {
resumeTorrents()
// Initialize ReactDOM
ReactDOM.render(<App state={state} ref={elem => { app = elem }} />, document.querySelector('#body'))
ReactDOM.render(
<App state={state} ref={elem => { app = elem }} />,
document.querySelector('#body')
)
// Calling update() updates the UI given the current state
// Do this at least once a second to give every file in every torrentSummary