fix platform specific code not working on web

This commit is contained in:
2026-02-25 12:05:07 +02:00
parent 281ea863e8
commit 5135629b33
11 changed files with 29 additions and 14 deletions

View File

@@ -30,7 +30,7 @@ class MihBannerAdProvider extends ChangeNotifier {
}
void loadBannerAd() {
if (Platform.isAndroid || Platform.isIOS) {
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS)) {
if (bannerAd != null) {
bannerAd!.dispose();
bannerAd = null;