@@ -0,0 +1,11 @@
|
||||
import {isSsr} from '@common/utils/dom/is-ssr';
|
||||
|
||||
export function useAppearanceEditorMode() {
|
||||
return {
|
||||
isAppearanceEditorActive:
|
||||
!isSsr() &&
|
||||
((window.frameElement as HTMLIFrameElement) || undefined)?.src.includes(
|
||||
'appearanceEditor=true'
|
||||
),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user