mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-03 14:53:10 +08:00
Update dependencies in package.json and bun.lock, enhance .gitignore to exclude mcp.json, and refactor provider and utils for improved web support.
This commit is contained in:
@@ -23,7 +23,7 @@ import {
|
||||
import { UpdateContext } from './context';
|
||||
import { URL } from 'react-native-url-polyfill';
|
||||
import { isInRollout } from './isInRollout';
|
||||
import { log } from './utils';
|
||||
import { assertWeb, log } from './utils';
|
||||
|
||||
export const UpdateProvider = ({
|
||||
client,
|
||||
@@ -277,6 +277,9 @@ export const UpdateProvider = ({
|
||||
if (!client.assertDebug('checkUpdate()')) {
|
||||
return;
|
||||
}
|
||||
if (!assertWeb()) {
|
||||
return;
|
||||
}
|
||||
const { checkStrategy, dismissErrorAfter, autoMarkSuccess } = options;
|
||||
if (autoMarkSuccess) {
|
||||
setTimeout(() => {
|
||||
@@ -351,6 +354,9 @@ export const UpdateProvider = ({
|
||||
}, [client]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!assertWeb()) {
|
||||
return;
|
||||
}
|
||||
const parseLinking = (url: string | null) => {
|
||||
if (!url) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user