mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-22 23:46:10 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f59be2749e |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "10.11.1",
|
"version": "10.11.2",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "src/index",
|
"main": "src/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import {
|
|||||||
} from './core';
|
} from './core';
|
||||||
import { CheckResult, ProgressData, PushyTestPayload } from './type';
|
import { CheckResult, ProgressData, PushyTestPayload } from './type';
|
||||||
import { PushyContext } from './context';
|
import { PushyContext } from './context';
|
||||||
import { URLSearchParams } from 'react-native-url-polyfill';
|
import { URL } from 'react-native-url-polyfill';
|
||||||
|
|
||||||
export const PushyProvider = ({
|
export const PushyProvider = ({
|
||||||
client,
|
client,
|
||||||
@@ -307,7 +307,7 @@ export const PushyProvider = ({
|
|||||||
if (!url) {
|
if (!url) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const params = new URLSearchParams(url);
|
const params = new URL(url).searchParams;
|
||||||
const payload = {
|
const payload = {
|
||||||
type: params.get('type'),
|
type: params.get('type'),
|
||||||
data: params.get('data'),
|
data: params.get('data'),
|
||||||
|
|||||||
Reference in New Issue
Block a user