Skip to content

Commit

Permalink
try catch for web
Browse files Browse the repository at this point in the history
  • Loading branch information
frnandu committed Sep 5, 2023
1 parent f3a0536 commit 6412191
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,11 @@ Future<void> main() async {
}

// FlutterNativeSplash.remove();
if (PlatformUtil.isAndroid() || PlatformUtil.isIOS()) {
initBackgroundService();
try{
if (PlatformUtil.isAndroid() || PlatformUtil.isIOS()) {
initBackgroundService();
}
} catch(e){
}
runApp(MyApp());
}
Expand Down

0 comments on commit 6412191

Please sign in to comment.