mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-01 13:53:11 +08:00
bugfixes
This commit is contained in:
@@ -38,6 +38,10 @@ There is available update:
|
||||
export async function checkUpdate(APPKEY) {
|
||||
const resp = await fetch(`${host}/checkUpdate/${APPKEY}`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
packageVersion: packageVersion,
|
||||
hash: currentVersion,
|
||||
@@ -75,11 +79,11 @@ export async function downloadUpdate(options) {
|
||||
}
|
||||
}
|
||||
|
||||
export async function switchVersion({hash}) {
|
||||
export async function switchVersion(hash) {
|
||||
HotUpdate.reloadUpdate({hashName:hash});
|
||||
}
|
||||
|
||||
export async function switchVersionLater({hash}) {
|
||||
export async function switchVersionLater(hash) {
|
||||
HotUpdate.setNeedUpdate({hashName:hash});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user