Skip to content

Commit

Permalink
fix: showing webview only in android
Browse files Browse the repository at this point in the history
  • Loading branch information
talha-trili committed Nov 15, 2024
1 parent e27320c commit 846df37
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,14 @@ private void OpenLoginLink()
OpenLink(loginLink);
}

private static void OpenLink(string loginLink)
private static void OpenLink(string linkToOpen)
{
#if UNITY_ANDROID && !UNITY_EDITOR
var safeBrowsing = UniWebViewSafeBrowsing.Create(loginLink);
safeBrowsing.Show();
#else
Application.OpenURL(linkToOpen);
#endif
}

private void TestOperation()
Expand Down

0 comments on commit 846df37

Please sign in to comment.