fix(editor): sentry-b0cfc9953ff64c53b9994697171bb91a (#9396)
This commit is contained in:
@@ -7,6 +7,8 @@ export function isInsidePageEditor(host: EditorHost) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isInsideEdgelessEditor(host: EditorHost) {
|
export function isInsideEdgelessEditor(host: EditorHost) {
|
||||||
|
if (!host) return false;
|
||||||
|
|
||||||
return Array.from(host.children).some(
|
return Array.from(host.children).some(
|
||||||
v =>
|
v =>
|
||||||
v.tagName.toLowerCase() === 'affine-edgeless-root' ||
|
v.tagName.toLowerCase() === 'affine-edgeless-root' ||
|
||||||
|
|||||||
Reference in New Issue
Block a user