Skip to content

Commit cb6aabf

Browse files
committed
fix: check is in design mode
1 parent 3f42516 commit cb6aabf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/helpers/src/helpers/assert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ export function isServiceVariablePath(key: string) {
6666
* 是否在 Tango 设计模式
6767
*/
6868
export function isInTangoDesignMode() {
69-
return '__TANGO_DESIGNER__' in window;
69+
return !!(window as any).__TANGO_DESIGNER__;
7070
}

0 commit comments

Comments
 (0)