refactor: explicitly specify top redirections for secure payment and payout links (#6494)

This commit is contained in:
Kashif
2024-11-11 13:06:14 +05:30
committed by GitHub
parent f89e8742e2
commit 0a506b1729
2 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ if (!isTestMode && !isFramed) {
// @ts-ignore
hyper = window.Hyper(publishableKey, {
isPreloadEnabled: false,
shouldUseTopRedirection: isFramed,
});
widgets = hyper.widgets({
appearance: appearance,

View File

@ -48,6 +48,7 @@ if (!isFramed) {
// @ts-ignore
hyper = window.Hyper(pub_key, {
isPreloadEnabled: false,
shouldUseTopRedirection: true,
});
// @ts-ignore
widgets = hyper.widgets({