Initial commit: Proxmox Desktop client with VNC console, WebSocket proxy, and Tauri shell
This commit is contained in:
@@ -57,7 +57,7 @@ export function VNCConsole({ connectionId, node, vmid, onError }: VNCConsoleProp
|
||||
if (cancelled) return
|
||||
|
||||
// Dynamically import noVNC RFB class
|
||||
const { default: RFB } = await import('@novnc/novnc/core/rfb.js')
|
||||
const { default: RFB } = await import('@novnc/novnc')
|
||||
|
||||
if (cancelled || !containerRef.current) return
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// Custom type declarations for @novnc/novnc v1.7.0
|
||||
// The @types/novnc package is outdated and doesn't match the modern API
|
||||
|
||||
declare module '@novnc/novnc/core/rfb.js' {
|
||||
declare module '@novnc/novnc' {
|
||||
export default class RFB extends EventTarget {
|
||||
constructor(target: HTMLElement, url: string, options?: RFBOptions);
|
||||
disconnect(): void;
|
||||
|
||||
Reference in New Issue
Block a user