mirror of
https://github.com/jlengrand/Maestro.git
synced 2026-03-10 08:31:19 +00:00
fix: pass url as object to symphony:fetchDocumentContent handler
The handler expects { url: string } but preload was passing just the
url string directly. This caused "Invalid URL" errors when trying to
preview document content.
This commit is contained in:
@@ -307,7 +307,7 @@ export function createSymphonyApi() {
|
||||
fetchDocumentContent: (
|
||||
url: string
|
||||
): Promise<{ success: boolean; content?: string; error?: string }> =>
|
||||
ipcRenderer.invoke('symphony:fetchDocumentContent', url),
|
||||
ipcRenderer.invoke('symphony:fetchDocumentContent', { url }),
|
||||
|
||||
// Real-time updates
|
||||
onUpdated: (callback: () => void) => {
|
||||
|
||||
Reference in New Issue
Block a user