Skip to content

Commit

Permalink
Refactor netx.html to use arrow function for window.onload and add co…
Browse files Browse the repository at this point in the history
…nst declaration for app element
  • Loading branch information
arloor committed Oct 27, 2024
1 parent 810b02a commit da66ab3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust_http_proxy/html/netx.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@
return value;
}

window.onload = function () {
window.onload = ()=> {
const app = document.getElementById("app")
const root = ReactDOM.createRoot(app);
root.render(<App />);
};
Expand Down

0 comments on commit da66ab3

Please sign in to comment.