Skip to content

Commit

Permalink
🔥 Hide Web3Auth social login buttons on unsopported platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePicco committed Aug 23, 2022
1 parent 96f7661 commit 7747cd9
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ private void Start()

if(_messageTxt != null)
_messageTxt.gameObject.SetActive(false);

if (Application.platform != RuntimePlatform.Android &&
Application.platform != RuntimePlatform.IPhonePlayer
&& Application.platform != RuntimePlatform.WindowsPlayer)
{
_loginBtnGoogle.gameObject.SetActive(false);
_loginBtnTwitter.gameObject.SetActive(false);
}
}

private async void LoginChecker()
Expand Down

0 comments on commit 7747cd9

Please sign in to comment.