press-plus
Version:
28 lines (19 loc) • 366 B
text/typescript
import { isNotH5 } from '../utils/env';
// #ifndef H5
import { PAGWeb as PAGWebMp } from './index-mp';
// #endif
// #ifdef H5
import { PAGWeb as PAGWebWeb } from './index-web';
// #endif
let PAGWeb;
// #ifdef H5
PAGWeb = PAGWebWeb as unknown as typeof PAGWebMp;
// #endif
// #ifndef H5
if (isNotH5()) {
PAGWeb = PAGWebMp;
}
// #endif
export {
PAGWeb,
};