mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
refactor(payment-link): use shouldRemoveBeforeUnloadEvents flag for handling removal of beforeunload events through SDK (#7072)
This commit is contained in:
@ -27,7 +27,12 @@ function initializeSDK() {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
hyper = window.Hyper(pub_key, {
|
hyper = window.Hyper(pub_key, {
|
||||||
isPreloadEnabled: false,
|
isPreloadEnabled: false,
|
||||||
|
// TODO: Remove in next deployment
|
||||||
shouldUseTopRedirection: true,
|
shouldUseTopRedirection: true,
|
||||||
|
redirectionFlags: {
|
||||||
|
shouldRemoveBeforeUnloadEvents: true,
|
||||||
|
shouldUseTopRedirection: true,
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
widgets = hyper.widgets({
|
widgets = hyper.widgets({
|
||||||
|
|||||||
@ -48,7 +48,12 @@ if (!isFramed) {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
hyper = window.Hyper(pub_key, {
|
hyper = window.Hyper(pub_key, {
|
||||||
isPreloadEnabled: false,
|
isPreloadEnabled: false,
|
||||||
|
// TODO: Remove in next deployment
|
||||||
shouldUseTopRedirection: true,
|
shouldUseTopRedirection: true,
|
||||||
|
redirectionFlags: {
|
||||||
|
shouldRemoveBeforeUnloadEvents: true,
|
||||||
|
shouldUseTopRedirection: true,
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
widgets = hyper.widgets({
|
widgets = hyper.widgets({
|
||||||
|
|||||||
Reference in New Issue
Block a user