@tencentcloud/roomkit-web-vue3
Version:
<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,
19 lines (18 loc) • 618 B
JavaScript
var _a, _b;
import { getPlatform } from "@tencentcloud/universal-api";
const isPC = getPlatform() === "pc";
const isH5 = getPlatform() === "h5";
const isWeChat = getPlatform() === "wechat";
const isApp = getPlatform() === "app";
const isMobile = isH5 || isWeChat || isApp;
const isElectron = ((_a = navigator.userAgent) == null ? void 0 : _a.toLowerCase().indexOf(" electron/")) > -1;
const isWeiXinBrowser = navigator && ((_b = navigator.userAgent) == null ? void 0 : _b.toLocaleLowerCase().indexOf("micromessenger")) > -1;
export {
isApp,
isElectron,
isH5,
isMobile,
isPC,
isWeChat,
isWeiXinBrowser
};