Skip to content

Commit

Permalink
fixup! chore(suite-common): add native support for trading API
Browse files Browse the repository at this point in the history
  • Loading branch information
adderpositive committed Jan 24, 2025
1 parent c6813ee commit b01275c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions suite-common/invity/src/invityAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,10 @@ class InvityAPI {
}

private getOptionAPIHeader() {
const headersAPI = {
desktop: 'X-SuiteA-Api',
web: 'X-SuiteW-Api',
native: 'X-SuiteN-Api',
} as const;
if (isNative()) return 'X-SuiteN-Api';
if (isDesktop()) return 'X-SuiteA-Api';

if (isNative()) return headersAPI.native;
if (isDesktop()) return headersAPI.desktop;

return headersAPI.web;
return 'X-SuiteW-Api';
}

private options(
Expand Down

0 comments on commit b01275c

Please sign in to comment.