From b1943aaad9a12f3679e2f033f7bfc31bd926eba6 Mon Sep 17 00:00:00 2001 From: linonetwo Date: Wed, 8 Feb 2023 10:23:52 +0800 Subject: [PATCH] fix: preload compile needs correct type extension on window --- client-app/src/preload/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client-app/src/preload/index.ts b/client-app/src/preload/index.ts index 31202e1006..8c0adf5c5c 100644 --- a/client-app/src/preload/index.ts +++ b/client-app/src/preload/index.ts @@ -16,3 +16,12 @@ function setEnvironmentVariables() { } setEnvironmentVariables(); + +declare global { + interface Window { + CLIENT_APP?: boolean; + __editoVersion?: string; + } +} + +export {};