globalpayments / rxp-js

Global Payments Ecommerce JavaScript Library
MIT License
34 stars 70 forks source link

safari mobile window.open() doesn't work #46

Open panshangzhu opened 2 years ago

panshangzhu commented 2 years ago

Global Payment teams:

if we set the lightBox "autoload", the mobile safari will block the window.open(), I check your code:

openWindow: function (token) { //open new window var tabWindow = window.open(); // browsers can prevent a new window from being created // e.g. mobile Safari if (!tabWindow) { return null; }

the code just return "null" , which ask the browser do nothing...

Could you please solve this issue as quickly as possible ?

Thank you