Skip to content

Commit

Permalink
Revert changes needed for iOS testing
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Oct 24, 2024
1 parent 828f508 commit 74b78ac
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pages/v2/[linkId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,9 @@ const Nettest = ({
error,
}: Props) => {
const intl = useIntl()
const isIOS =
typeof window !== 'undefined' // TODO: remove after iOS testing
? JSON.parse(userAgent)?.os?.family === 'iOS' && // TODO: remove after iOS testing
window.location.hostname !== 'run.test.ooni.org' // TODO: remove after iOS testing
: JSON.parse(userAgent)?.os?.family === 'iOS'
const isIOS = JSON.parse(userAgent)?.os?.family === 'iOS'
const displayDeepLink = isIOS ? iOSDeepLink : deepLink
console.log('isIOS', isIOS)

const windowScript = `window.onload = function() {
document.getElementById('l').src = '${displayDeepLink}';
setTimeout(function() {
Expand All @@ -166,7 +162,7 @@ const Nettest = ({
description={description}
mobileApp={mobileApp}
deepLink={deepLink}
iOSDeepLink={displayDeepLink}
iOSDeepLink={iOSDeepLink}
universalLink={universalLink}
/>
{isMine ? (
Expand Down

0 comments on commit 74b78ac

Please sign in to comment.