mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-28 20:40:39 +00:00
Try fixing some type errors
This commit is contained in:
parent
2063190dee
commit
5587947c7e
2 changed files with 7 additions and 2 deletions
|
|
@ -159,7 +159,11 @@ async function main() {
|
|||
if (backgroundColor != null) {
|
||||
window.document.body.style.backgroundColor = backgroundColor;
|
||||
}
|
||||
const root = ReactDOM.createRoot(document.getElementById("demo-desktop"));
|
||||
const div = document.getElementById("demo-desktop");
|
||||
if (div == null) {
|
||||
throw new Error("Could not locate #demo-desktop div");
|
||||
}
|
||||
const root = ReactDOM.createRoot(div);
|
||||
root.render(
|
||||
<DemoDesktop webamp={webamp} soundCloudPlaylist={soundcloudPlaylist} />
|
||||
);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@
|
|||
"strict": true,
|
||||
"jsx": "preserve",
|
||||
"noEmit": true,
|
||||
"pretty": true
|
||||
"pretty": true,
|
||||
"types": ["react/experimental", "react-dom/experimental"]
|
||||
},
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules", "demo/built"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue