1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-08 00:15:14 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2024-07-29 00:56:57 +08:00
parent c5cdb6031b
commit b2305cff3f
4 changed files with 32 additions and 10 deletions

View File

@@ -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'),