Skip to content

Commit

Permalink
fix(storage,windows): add log to explain that the Storage Emulator is…
Browse files Browse the repository at this point in the history
… not available on Windows (#13147)
  • Loading branch information
Lyokone authored Aug 5, 2024
1 parent d41e30a commit 8d1ea80
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@ class FirebaseStorage extends FirebasePluginPlatform {
}
}

if (defaultTargetPlatform == TargetPlatform.windows && !kIsWeb) {
// ignore: avoid_print
print('The Storage Emulator is not available on Windows.');
return;
}

await _delegate.useStorageEmulator(mappedHost, port);
}

Expand Down

0 comments on commit 8d1ea80

Please sign in to comment.