Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions packages/cfd/src/Containers/mt5-mobile-redirect-option.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type TMT5MobileRedirectOptionProps = {
};
const MT5MobileRedirectOption = ({ mt5_trade_account }: TMT5MobileRedirectOptionProps) => {
let mobile_url;
const is_new_iphone = /Version\/17/.test(navigator.userAgent);

const mobileURLSet = () => {
mobile_url = window.location.replace(DEEP_LINK({ mt5_trade_account }));
Expand All @@ -19,7 +20,7 @@ const MT5MobileRedirectOption = ({ mt5_trade_account }: TMT5MobileRedirectOption
mobile_url = window.location.replace(getMobileAppInstallerURL({ mt5_trade_account }) as string);
}, 1500);

if (!isSafariBrowser()) {
if (!isSafariBrowser() || (isSafariBrowser() && is_new_iphone)) {
window.onblur = () => {
clearTimeout(timeout);
};
Expand Down Expand Up @@ -61,10 +62,7 @@ const MT5MobileRedirectOption = ({ mt5_trade_account }: TMT5MobileRedirectOption
</Text>

<Text as='p' align='center' size='xxs'>
<Localize
i18n_default_text='For MT5 login issues, visit our <0>Help Centre</0>.'
components={[<StaticUrl key={0} className='help-center-link' href={mt5_help_centre_url} />]}
/>
{navigator.userAgent}
</Text>
</div>
);
Expand Down