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

Update client.ts

This commit is contained in:
Sunny Luo
2024-09-30 21:23:30 +08:00
committed by GitHub
parent 20d09529d2
commit b71626d7d4

View File

@@ -11,6 +11,7 @@ import {
packageVersion,
rolledBackVersion,
setLocalHashInfo,
isFirstTime,
isRolledBack,
} from './core';
@@ -118,7 +119,7 @@ export class Pushy {
return true;
};
markSuccess = () => {
if (this.marked || __DEV__) {
if (this.marked || __DEV__ || !isFirstTime) {
return;
}
this.marked = true;