Skip to content

Commit

Permalink
fix: added loader for netecetera when openurl_if_required is sent pos…
Browse files Browse the repository at this point in the history
…t otp submission (#589)
  • Loading branch information
ArushKapoorJuspay authored Sep 3, 2024
1 parent ca2a943 commit bf04562
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/orca-loader/Elements.res
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,11 @@ let make = (

switch eventDataObject->getOptionalJsonFromJson("openurl_if_required") {
| Some(val) =>
messageParentWindow([
("fullscreen", true->JSON.Encode.bool),
("param", "paymentloader"->JSON.Encode.string),
("iframeId", selectorString->JSON.Encode.string),
])
if redirect.contents === "always" {
Window.Location.replace(val->JSON.Decode.string->Option.getOr(""))
resolve(JSON.Encode.null)
Expand Down

0 comments on commit bf04562

Please sign in to comment.