mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 lines
275 B
TypeScript
10 lines
275 B
TypeScript
import { Platform, NativeModules } from 'react-native';
|
|
|
|
export default async function setIgnoreTlsErrors(ignore: boolean): Promise<boolean> {
|
|
if (Platform.OS === 'android') {
|
|
return await NativeModules.SslModule.setIgnoreTlsErrors(ignore);
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|