Resize and center oxxo modal window

This commit is contained in:
dinamiko 2022-07-14 12:40:04 +02:00
parent 07da639f9d
commit 7985999192

View file

@ -30,10 +30,14 @@ window.addEventListener('load', function () {
return;
}
const width = screen.width/2;
const height = screen.height/2;
const left = (screen.width/2)-(width/2);
const top = (screen.height/2)-(height/2);
window.open(
data.data.payer_action,
'_blank',
'popup'
'popup, width='+width+', height='+height+', top='+top+', left='+left
);
document.querySelector('#place_order').click()