Skip to content

Commit

Permalink
chore: fix stg deploy for wasm (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsgalarraga authored May 23, 2024
1 parent b9631bb commit 7181b98
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/main_staging.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// ignore_for_file: avoid_web_libraries_in_flutter

import 'dart:async';
import 'dart:js' as js;
import 'dart:js_interop' as js;
import 'dart:js_interop_unsafe';

import 'package:api_client/api_client.dart';
import 'package:authentication_repository/authentication_repository.dart';
Expand All @@ -18,8 +17,10 @@ import 'package:leaderboard_repository/leaderboard_repository.dart';

void main() async {
if (kDebugMode) {
js.context['FIREBASE_APPCHECK_DEBUG_TOKEN'] =
const String.fromEnvironment('APPCHECK_DEBUG_TOKEN');
js.globalContext.setProperty(
'FIREBASE_APPCHECK_DEBUG_TOKEN'.toJS,
const String.fromEnvironment('APPCHECK_DEBUG_TOKEN').toJS,
);
}

WidgetsFlutterBinding.ensureInitialized();
Expand Down

0 comments on commit 7181b98

Please sign in to comment.