Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: preload compile needs correct type extension on window

linonetwob1943aaad9a1
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 {};