mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 13:11:39 +08:00
修复ios禁用时报错
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { NativeAppEventEmitter, NativeModules } from 'react-native';
|
||||
const { HotUpdate = {} } = NativeModules;
|
||||
const HotUpdate = NativeModules.HotUpdate || {};
|
||||
|
||||
const host = 'https://update.reactnative.cn/api';
|
||||
|
||||
@@ -40,7 +40,6 @@ function assertRelease() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export async function checkUpdate(APPKEY) {
|
||||
assertRelease();
|
||||
const resp = await fetch(`${host}/checkUpdate/${APPKEY}`, {
|
||||
|
Reference in New Issue
Block a user