chore: lint

This commit is contained in:
Rajeh Taher
2025-10-16 13:26:58 +03:00
parent 93b87e4653
commit d0feb240fa
4 changed files with 13 additions and 6 deletions
+5 -1
View File
@@ -40,7 +40,11 @@ const PLATFORM_MAP = {
const getWebInfo = (config: SocketConfig): proto.ClientPayload.IWebInfo => {
let webSubPlatform = proto.ClientPayload.WebInfo.WebSubPlatform.WEB_BROWSER
if (config.syncFullHistory && PLATFORM_MAP[config.browser[0] as keyof typeof PLATFORM_MAP] && config.browser[1] == 'Desktop') {
if (
config.syncFullHistory &&
PLATFORM_MAP[config.browser[0] as keyof typeof PLATFORM_MAP] &&
config.browser[1] === 'Desktop'
) {
webSubPlatform = PLATFORM_MAP[config.browser[0] as keyof typeof PLATFORM_MAP]
}