File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Packages/Passport/Runtime/Scripts/Public Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
#if ! IMMUTABLE_CUSTOM_BROWSER
5
5
using VoltstroStudios . UnityWebBrowser . Core ;
6
6
#endif
7
- #else
7
+ #elif ( UNITY_ANDROID && ! UNITY_EDITOR_WIN ) || ( UNITY_IPHONE && ! UNITY_EDITOR_WIN ) || UNITY_STANDALONE_OSX
8
8
using Immutable . Browser . Gree ;
9
9
#endif
10
10
using Immutable . Passport . Event ;
@@ -152,9 +152,11 @@ private async UniTask Initialise(
152
152
await ( ( WebBrowserClient ) this . webBrowserClient ) . Init ( engineStartupTimeoutMs ) ;
153
153
#endif
154
154
}
155
- #else
155
+ #elif ( UNITY_ANDROID && ! UNITY_EDITOR_WIN ) || ( UNITY_IPHONE && ! UNITY_EDITOR_WIN ) || UNITY_STANDALONE_OSX
156
156
// Initialise default browser client for Android, iOS, and macOS
157
157
webBrowserClient = new GreeBrowserClient ( ) ;
158
+ #else
159
+ throw new PassportException ( "Platform not supported" ) ;
158
160
#endif
159
161
160
162
// Set up browser communication
You can’t perform that action at this time.
0 commit comments