MCPcopy
hub / github.com/crawlab-team/artipub / isAntDesignPro

Function isAntDesignPro

frontend/src/utils/utils.ts:6–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4const isUrl = (path: string): boolean => reg.test(path);
5
6const isAntDesignPro = (): boolean => {
7 if (ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION === 'site') {
8 return true;
9 }
10 return window.location.hostname === 'preview.pro.ant.design';
11};
12
13// 给官方演示站点用,用于关闭真实开发环境不需要使用的特性
14const isAntDesignProOrDev = (): boolean => {

Callers 3

onBlockCopyFunction · 0.90
footerRenderFunction · 0.90
isAntDesignProOrDevFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected