Refactor browser & userAgent's capabilities

This commit is contained in:
redphx
2024-07-06 15:53:01 +07:00
parent b6746598a3
commit 2b63edb7eb
14 changed files with 48 additions and 25 deletions

14
src/types/index.d.ts vendored
View File

@@ -28,8 +28,18 @@ type BxStates = {
appContext: any | null;
serverRegions: any;
userAgentHasTouchSupport: boolean;
browserHasTouchSupport: boolean;
browser: {
capabilities: {
touch: boolean;
batteryApi: boolean;
};
};
userAgent: {
capabilities: {
touch: boolean;
};
};
currentStream: Partial<{
titleId: string;