mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +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
|
||||
hyper = window.Hyper(pub_key, {
|
||||
isPreloadEnabled: false,
|
||||
// TODO: Remove in next deployment
|
||||
shouldUseTopRedirection: true,
|
||||
redirectionFlags: {
|
||||
shouldRemoveBeforeUnloadEvents: true,
|
||||
shouldUseTopRedirection: true,
|
||||
}
|
||||
});
|
||||
// @ts-ignore
|
||||
widgets = hyper.widgets({
|
||||
|
||||
@ -48,7 +48,12 @@ if (!isFramed) {
|
||||
// @ts-ignore
|
||||
hyper = window.Hyper(pub_key, {
|
||||
isPreloadEnabled: false,
|
||||
// TODO: Remove in next deployment
|
||||
shouldUseTopRedirection: true,
|
||||
redirectionFlags: {
|
||||
shouldRemoveBeforeUnloadEvents: true,
|
||||
shouldUseTopRedirection: true,
|
||||
}
|
||||
});
|
||||
// @ts-ignore
|
||||
widgets = hyper.widgets({
|
||||
|
||||
Reference in New Issue
Block a user