1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 13:11:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

修复ios禁用时报错

This commit is contained in:
sunnylqm
2019-10-25 19:05:01 +08:00
parent b44225f9bd
commit 1cb974ca61
3 changed files with 6 additions and 3 deletions

View File

@@ -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}`, {