mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 00:14:54 +00:00
13 lines
297 B
TypeScript
13 lines
297 B
TypeScript
import type { DesktopHostBridge } from "@/desktop/host";
|
|
|
|
export function getElectronHost(): DesktopHostBridge | null {
|
|
if (typeof window === "undefined") {
|
|
return null;
|
|
}
|
|
const host = window.paseoDesktop;
|
|
if (!host || typeof host !== "object") {
|
|
return null;
|
|
}
|
|
return host;
|
|
}
|