Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Helfer committed Apr 25, 2024
1 parent d6b0b64 commit c53ad21
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/components/Redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import AppStoreButton from '@theme/AppStoreButton';

const Redirect: React.FC = () => {
const [display, setDisplay] = useState('none');
const [userAgent, setUserAgent] = useState('');
const location = useLocation();
const params = new URLSearchParams(location.search);
const promoter = params.get('x') || 'threetenlabs';
Expand All @@ -16,7 +15,6 @@ const Redirect: React.FC = () => {

useEffect(() => {
var ua = navigator.userAgent.toLowerCase();
setUserAgent(ua);
var isAndroid = ua.indexOf("android") > -1;
var isiOS = /iPad|iPhone|iPod/.test(ua);

Expand All @@ -32,7 +30,6 @@ const Redirect: React.FC = () => {
return (
<div style={{display: display, flexDirection: 'column', alignItems: 'center', gap: '20px'}}>
<div className="row">
<p>User Agent: {userAgent}</p>
<div className="col col--12--center yassIcon">
<img src="/img/yass/playstore.png" alt="Y.A.S.S. Solitaire" />
</div>
Expand Down

0 comments on commit c53ad21

Please sign in to comment.