mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(editor): sentry-b0cfc9953ff64c53b9994697171bb91a (#9396)
This commit is contained in:
@@ -7,6 +7,8 @@ export function isInsidePageEditor(host: EditorHost) {
|
||||
}
|
||||
|
||||
export function isInsideEdgelessEditor(host: EditorHost) {
|
||||
if (!host) return false;
|
||||
|
||||
return Array.from(host.children).some(
|
||||
v =>
|
||||
v.tagName.toLowerCase() === 'affine-edgeless-root' ||
|
||||
|
||||
Reference in New Issue
Block a user