fix(iOS): disable online catalogs on iOS from appstore channel (#3102)
This commit is contained in:
@@ -451,11 +451,10 @@ export class NativeAppService extends BaseAppService {
|
||||
});
|
||||
}
|
||||
if (this.isIOSApp) {
|
||||
this.isOnlineCatalogsAccessible = this.distChannel !== 'appstore';
|
||||
const res = await getStorefrontRegionCode();
|
||||
if (res.regionCode) {
|
||||
this.storefrontRegionCode = res.regionCode;
|
||||
this.isOnlineCatalogsAccessible =
|
||||
this.storefrontRegionCode.toLowerCase() !== 'chn' || this.distChannel !== 'appstore';
|
||||
}
|
||||
}
|
||||
await this.prepareBooksDir();
|
||||
|
||||
Reference in New Issue
Block a user