Skip to content

Commit

Permalink
Version 2.0.3, change platform for macos client
Browse files Browse the repository at this point in the history
  • Loading branch information
mainsmirnov committed Mar 5, 2024
1 parent 2b3dd80 commit 866cf7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xelene/tgui",
"version": "2.0.2",
"version": "2.0.3",
"description": "",
"main": "dist/cjs/index.js",
"module": "dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { Platform } from 'enums/Platform';
import { getTelegramData } from 'helpers/telegram';

export const getInitialPlatform = () => {
if (getTelegramData()?.platform === 'ios') {
const telegramData = getTelegramData();
if (!telegramData) {
return Platform.Base;
}

if (['ios', 'macos'].includes(telegramData.platform)) {
return Platform.IOS;
}

Expand Down

0 comments on commit 866cf7d

Please sign in to comment.