forked from akai/readest
chore(opds): disable popular online opds catalogs in certain regions on App Store (#3031)
This commit is contained in:
@@ -91,6 +91,11 @@ interface SelectDirectoryResponse {
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface GetStorefrontRegionCodeResponse {
|
||||
regionCode?: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export async function copyURIToPath(request: CopyURIRequest): Promise<CopyURIResponse> {
|
||||
const result = await invoke<CopyURIResponse>('plugin:native-bridge|copy_uri_to_path', {
|
||||
payload: request,
|
||||
@@ -202,3 +207,10 @@ export async function selectDirectory(): Promise<SelectDirectoryResponse> {
|
||||
const result = await invoke<SelectDirectoryResponse>('plugin:native-bridge|select_directory');
|
||||
return result;
|
||||
}
|
||||
|
||||
export async function getStorefrontRegionCode(): Promise<GetStorefrontRegionCodeResponse> {
|
||||
const result = await invoke<GetStorefrontRegionCodeResponse>(
|
||||
'plugin:native-bridge|get_storefront_region_code',
|
||||
);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user