diff --git a/client/src/javascript/components/modals/add-torrents-modal/AddTorrentsByURL.tsx b/client/src/javascript/components/modals/add-torrents-modal/AddTorrentsByURL.tsx index d5e4a570..71368f8d 100644 --- a/client/src/javascript/components/modals/add-torrents-modal/AddTorrentsByURL.tsx +++ b/client/src/javascript/components/modals/add-torrents-modal/AddTorrentsByURL.tsx @@ -41,21 +41,23 @@ const AddTorrentsByURL: FC = () => { {intl.formatMessage({ id: 'torrents.add.torrents.label', })} - { - if (typeof navigator.registerProtocolHandler === 'function') { - navigator.registerProtocolHandler( - 'magnet', - `${ConfigStore.baseURI}?action=add-urls&url=%s`, - 'Magnet -> Flood', - ); - } - }}> - {intl.formatMessage({ - id: 'torrents.add.tab.url.register.magnet.handler', - })} - + {typeof navigator.registerProtocolHandler === 'function' && ( + { + if (typeof navigator.registerProtocolHandler === 'function') { + navigator.registerProtocolHandler( + 'magnet', + `${ConfigStore.baseURI}?action=add-urls&url=%s`, + 'Magnet -> Flood', + ); + } + }}> + {intl.formatMessage({ + id: 'torrents.add.tab.url.register.magnet.handler', + })} + + )} } placeholder={intl.formatMessage({