mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +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
	 tdzl2003
					tdzl2003