Skip to content

Commit

Permalink
fix: check is in design mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wwsun committed Apr 8, 2024
1 parent 3f42516 commit cb6aabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/helpers/src/helpers/assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ export function isServiceVariablePath(key: string) {
* 是否在 Tango 设计模式
*/
export function isInTangoDesignMode() {
return '__TANGO_DESIGNER__' in window;
return !!(window as any).__TANGO_DESIGNER__;
}

0 comments on commit cb6aabf

Please sign in to comment.