mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-08 00:15:14 +08:00
v10.11.2
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
||||
} from './core';
|
||||
import { CheckResult, ProgressData, PushyTestPayload } from './type';
|
||||
import { PushyContext } from './context';
|
||||
import { URLSearchParams } from 'react-native-url-polyfill';
|
||||
import { URL } from 'react-native-url-polyfill';
|
||||
|
||||
export const PushyProvider = ({
|
||||
client,
|
||||
@@ -307,7 +307,7 @@ export const PushyProvider = ({
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
const params = new URLSearchParams(url);
|
||||
const params = new URL(url).searchParams;
|
||||
const payload = {
|
||||
type: params.get('type'),
|
||||
data: params.get('data'),
|
||||
|
Reference in New Issue
Block a user