Skip to content

Build your personal knowledge base with Trilium Notes

chore(client): fix typecheck issue

Elian Doranee4e69004b59
diff --git a/apps/client/src/widgets/type_widgets/WebView.tsx b/apps/client/src/widgets/type_widgets/WebView.tsx
index 4d45295e87..1a7e7d77db 100644
--- a/apps/client/src/widgets/type_widgets/WebView.tsx
+++ b/apps/client/src/widgets/type_widgets/WebView.tsx
@@ -36,7 +36,7 @@ export default function WebView({ note, ntxId }: TypeWidgetProps) {
}
function DesktopWebView({ src, ntxId }: { src: string, ntxId: string | null | undefined }) {
- const webviewRef = useRef<HTMLWebViewElement>(null);
+ const webviewRef = useRef<HTMLElement>(null);
useEffect(() => {
const webview = webviewRef.current;