Skip to content

Commit

Permalink
fix: tonendpoint flags
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed Dec 12, 2024
1 parent 87bf51b commit 3b11e77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/core/src/tonkeeperApi/tonendpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ export interface TonendpointConfig {
battery_beta?: boolean;
disable_battery?: boolean;
disable_battery_send?: boolean;
isOnReview?: boolean;

/**
* "secret" flag name to determine if the app is on ios review
*/
tablet_enable_additional_security?: boolean;
}

const defaultTonendpoint = 'https://api.tonkeeper.com'; // 'http://localhost:1339';
Expand Down
2 changes: 1 addition & 1 deletion packages/uikit/src/hooks/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export function hideIosKeyboard() {

export const useIsOnIosReview = () => {
const { mainnetConfig } = useAppContext();
return Boolean(mainnetConfig.isOnReview);
return Boolean(mainnetConfig.tablet_enable_additional_security);
};

0 comments on commit 3b11e77

Please sign in to comment.