File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -226,10 +226,11 @@ export class Pushy {
226226 // @ts -ignore
227227 delete fetchBody . buildTime ;
228228 }
229+ const stringifyBody = JSON . stringify ( fetchBody ) ;
229230 // harmony fetch body is not string
230231 let body : any = fetchBody ;
231232 if ( Platform . OS === 'ios' || Platform . OS === 'android' ) {
232- body = JSON . stringify ( fetchBody ) ;
233+ body = stringifyBody ;
233234 }
234235 const fetchPayload = {
235236 method : 'POST' ,
@@ -243,7 +244,7 @@ export class Pushy {
243244 try {
244245 this . report ( {
245246 type : 'checking' ,
246- message : this . options . appKey + ': ' + body ,
247+ message : this . options . appKey + ': ' + stringifyBody ,
247248 } ) ;
248249 resp = await fetch ( this . getCheckUrl ( ) , fetchPayload ) ;
249250 } catch ( e : any ) {
You can’t perform that action at this time.
0 commit comments