Prep for tauri
This commit is contained in:
parent
ab7d0f68d9
commit
950ed816d1
6 changed files with 158 additions and 136 deletions
9
crates/librqbit/webui/src/main.tsx
Normal file
9
crates/librqbit/webui/src/main.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { StrictMode } from "react";
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { RqbitWebUI } from "./rqbit-web";
|
||||
import { API } from "./api";
|
||||
|
||||
globalThis.API = API;
|
||||
|
||||
const torrentsContainer = document.getElementById('app');
|
||||
ReactDOM.createRoot(torrentsContainer).render(<StrictMode><RqbitWebUI /></StrictMode >);
|
||||
Loading…
Add table
Add a link
Reference in a new issue