fix(electron): center peek for links in electron (#7301)

This commit is contained in:
pengx17 2024-06-21 09:27:13 +00:00
parent 6865a52172
commit 2482c3c266
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -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