From ea24b4a5bf5cbbaa681b492db115f38581bc567a Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Wed, 24 Jan 2024 15:37:15 +0530 Subject: [PATCH] fix: parent removal --- src/components/AuthWrapperUtils.res | 3 --- src/genericUtils/DOMUtils.res | 1 - src/screens/HyperSwitch/SDKPayment/WebSDK.res | 1 - 3 files changed, 5 deletions(-) diff --git a/src/components/AuthWrapperUtils.res b/src/components/AuthWrapperUtils.res index 7143a03b4..e9af57f22 100644 --- a/src/components/AuthWrapperUtils.res +++ b/src/components/AuthWrapperUtils.res @@ -1,7 +1,4 @@ -type parent - @val external window: 'a = "window" -@val @scope("window") external parent: parent = "parent" let getValidToken = oStr => { if oStr !== Some("__failed") && oStr !== Some("") { diff --git a/src/genericUtils/DOMUtils.res b/src/genericUtils/DOMUtils.res index b690e4f2b..55785e388 100644 --- a/src/genericUtils/DOMUtils.res +++ b/src/genericUtils/DOMUtils.res @@ -6,7 +6,6 @@ type window @val external window: window = "window" @send external click: (Dom.element, unit) => unit = "click" @send external reset: (Dom.element, unit) => unit = "reset" -@val @scope("window") external parent: window = "parent" type event @new external event: string => event = "Event" diff --git a/src/screens/HyperSwitch/SDKPayment/WebSDK.res b/src/screens/HyperSwitch/SDKPayment/WebSDK.res index 1a40ef235..fe23c374d 100644 --- a/src/screens/HyperSwitch/SDKPayment/WebSDK.res +++ b/src/screens/HyperSwitch/SDKPayment/WebSDK.res @@ -3,7 +3,6 @@ open HyperSwitchTypes open Promise @val external window: 'a = "window" -@val @scope("window") external parent: 'a = "parent" type configElements = { appearanceElement: Js.Json.t,