From 2482c3c26644e03287e6c14e452c7dc8b0801865 Mon Sep 17 00:00:00 2001 From: pengx17 Date: Fri, 21 Jun 2024 09:27:13 +0000 Subject: [PATCH] fix(electron): center peek for links in electron (#7301) --- packages/frontend/core/src/modules/navigation/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/core/src/modules/navigation/utils.ts b/packages/frontend/core/src/modules/navigation/utils.ts index 2ba75a0cea1de..47cdeba29e6f4 100644 --- a/packages/frontend/core/src/modules/navigation/utils.ts +++ b/packages/frontend/core/src/modules/navigation/utils.ts @@ -1,6 +1,6 @@ function maybeAffineOrigin(origin: string) { return ( - origin.startsWith('file://.') || + origin.startsWith('file://') || origin.startsWith('affine://') || origin.endsWith('affine.pro') || // stable/beta origin.endsWith('affine.fail') || // canary