diff --git a/src/main/ipc.ts b/src/main/ipc.ts index a438206..0d0a772 100644 --- a/src/main/ipc.ts +++ b/src/main/ipc.ts @@ -135,7 +135,7 @@ handle(IpcEvents.CLIPBOARD_COPY_IMAGE, async (_, buf: ArrayBuffer, src: string) }); }); -handle(IpcEvents.FOUROHFOUR_PAGE_HANDLER, _ => { +handle(IpcEvents.PAGE_NOT_FOUND_HANDLER, _ => { loadUrl(undefined); console.warn("caught incomplete uri scheme. dumping to main app"); }); diff --git a/src/preload/index.ts b/src/preload/index.ts index 5aa63ad..b43b70d 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -25,7 +25,7 @@ style.id = "vcd-css-core"; style.textContent = readFileSync(rendererCss, "utf-8"); document.addEventListener("DOMContentLoaded", () => { - if (document.title === "Page Not Found | Discord") ipcRenderer.invoke(IpcEvents.FOUROHFOUR_PAGE_HANDLER); + if (document.title === "Page Not Found | Discord") ipcRenderer.invoke(IpcEvents.PAGE_NOT_FOUND_HANDLER); }); if (document.readyState === "complete") { diff --git a/src/shared/IpcEvents.ts b/src/shared/IpcEvents.ts index 0843a47..2fba633 100644 --- a/src/shared/IpcEvents.ts +++ b/src/shared/IpcEvents.ts @@ -52,5 +52,5 @@ export const enum IpcEvents { CLIPBOARD_COPY_IMAGE = "VCD_CLIPBOARD_COPY_IMAGE", - FOUROHFOUR_PAGE_HANDLER = "VCD_404_PAGE_HANDLER" + PAGE_NOT_FOUND_HANDLER = "VCD_PAGE_NOT_FOUND_HANDLER" }