@dfsol/platform-detector
Version:
Universal platform detector for web, PWA, TWA, Telegram Mini Apps, Capacitor.js, and native mobile applications with @tma.js SDK support
8 lines (7 loc) • 531 B
JavaScript
/**
* @dfsol/platform-detector
* Universal platform detector for web, PWA, TWA, Telegram Mini Apps, and native mobile applications
*/
export { PlatformDetector, createPlatformDetector, detectPlatform } from './detector.js';
export { loadTelegramSDK, shouldLoadTelegramSDK, getTelegramWebApp } from './telegram-sdk.js';
export { isTmaJsSdkAvailable, isTelegramViaTmaJs, getTmaJsSdk, getTelegramPlatformFromTmaJs, getTelegramInitDataFromTmaJs, getViewportFromTmaJs, getThemeParamsFromTmaJs, initializeTmaJs } from './tma-sdk.js';