Skip to content

Commit c543a12

Browse files
added options
1 parent 10b9e1d commit c543a12

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

PlaygamaBridge.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4471,8 +4471,7 @@
44714471
" gdjs._playgamaBridgeExtension.isLastActionCompletedSuccessfully = true;",
44724472
" gdjs._playgamaBridgeExtension.paymentsPurchase = { ",
44734473
" ...data, ",
4474-
" options: options || {},",
4475-
" optionsJson: options ? JSON.stringify(options) : ''",
4474+
" options: options || {}",
44764475
" };",
44774476
" })",
44784477
" .catch(error => console.log(error))",
@@ -4815,9 +4814,12 @@
48154814
" }",
48164815
" eventsFunctionContext.returnValue = value ?? '';",
48174816
" } else {",
4818-
" eventsFunctionContext.returnValue = isNaN(+property)",
4817+
" const value = isNaN(+property)",
48194818
" ? paymentsPurchase[property]",
48204819
" : paymentsPurchase[Object.keys(paymentsPurchase)[property]];",
4820+
" eventsFunctionContext.returnValue = typeof value === 'object' && value !== null",
4821+
" ? JSON.stringify(value)",
4822+
" : (value ?? '');",
48214823
" }",
48224824
"}",
48234825
"",

0 commit comments

Comments
 (0)