Skip to content

Commit ee83de3

Browse files
committed
fix
1 parent cd98e25 commit ee83de3

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

ios/RCTPushy/RCTPushy.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,8 @@ - (BOOL)switchVersion:(NSString *)hash error:(NSError **)error
680680
PushyToStdString(hash)
681681
);
682682
PushyApplyStateToDefaults(defaults, next);
683+
// Re-enable first-load consumption and rollback checks for the newly selected bundle.
684+
ignoreRollback = false;
683685
return YES;
684686
}
685687

src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export function joinUrls(paths: string[], fileName?: string) {
7676
if (fileName) {
7777
return paths.map(path => {
7878
const normalizedPath = path.replace(/\/+$/, '');
79+
// Keep explicit http(s) URLs for local/self-hosted update sources.
7980
const baseUrl = /^[a-z][a-z0-9+.-]*:\/\//i.test(normalizedPath)
8081
? normalizedPath
8182
: `https://${normalizedPath}`;

0 commit comments

Comments
 (0)