Skip to content

Commit

Permalink
Well that didn't fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Jan 28, 2025
1 parent 1461f02 commit 2085241
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pub_stats/lib/service/firebase_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/foundation.dart';
import 'package:get_it/get_it.dart';
import 'package:logger/logger.dart';
import 'package:platform_plus/platform_plus.dart';
import 'package:pub_stats/firebase_options.dart';
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_app_check/firebase_app_check.dart';
Expand All @@ -16,14 +15,9 @@ class FirebaseService {
FirebaseService._();

static Future<FirebaseService> create() async {
final authDomainOverride = switch (PlatformPlus.platform.webRenderer) {
WebRenderer.wasm => 'proxy.pubstats.dev',
_ => null,
};

await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform
.copyWith(authDomain: authDomainOverride),
.copyWith(authDomain: 'proxy.pubstats.dev'),
);

// Initialize services
Expand Down

0 comments on commit 2085241

Please sign in to comment.