UNPKG

press-plus

Version:
19 lines (12 loc) 377 B
import { openLocationInMp, openLocationInH5 } from 't-comm/lib/open-location/option-location'; import type { OpenLocation } from 't-comm'; export function openLocationInUni(args: OpenLocation) { let promise: Promise<any>; // #ifdef H5 promise = openLocationInH5(args); // #endif // #ifndef H5 promise = openLocationInMp(args); // #endif return promise; }