Skip to content

Commit 66c2504

Browse files
committed
comments
1 parent bbda721 commit 66c2504

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client.ts

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
} from './core';
1717

1818
const SERVER_PRESETS = {
19+
// cn
1920
pushy: {
2021
main: 'https://update.react-native.cn/api',
2122
backups: ['https://update.reactnative.cn/api'],
@@ -24,6 +25,7 @@ const SERVER_PRESETS = {
2425
'https://cdn.jsdelivr.net/gh/reactnativecn/react-native-update@master/endpoints.json',
2526
],
2627
},
28+
// i18n
2729
cresc: {
2830
main: 'https://api.cresc.dev',
2931
backups: ['https://api.cresc.app'],
@@ -48,6 +50,7 @@ const defaultClientOptions: ClientOptions = {
4850
throwError: false,
4951
};
5052

53+
// for China users
5154
export class Pushy {
5255
options: ClientOptions = {
5356
...defaultClientOptions,
@@ -504,6 +507,7 @@ export class Pushy {
504507
};
505508
}
506509

510+
// for international users
507511
export class Cresc extends Pushy {
508512
clientType: 'cresc' | 'pushy' = 'cresc';
509513
options: ClientOptions = {

0 commit comments

Comments
 (0)