Skip to content

Commit

Permalink
chore: update bugsee manager singleton registration in main file
Browse files Browse the repository at this point in the history
  • Loading branch information
koukibadr committed Nov 22, 2024
1 parent 7f20a67 commit ac885a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ void _initializeBugseeManager() {
}

Future _registerBugseeManager() async {
if (!GetIt.I.isRegistered<BugseeManager>()) {
_initializeBugseeManager();
}
GetIt.I.get<BugseeManager>().initialize(
bugseeToken: const String.fromEnvironment('BUGSEE_TOKEN'),
logger: GetIt.I.get<Logger>(),
Expand Down

0 comments on commit ac885a0

Please sign in to comment.