Skip to content

Commit 3adef15

Browse files
committed
Make window.ethereum nullable
1 parent af4c3fb commit 3adef15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/browser/javascript.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:meta/meta.dart';
99
import 'dart_wrappers.dart';
1010

1111
@JS('ethereum')
12-
external Ethereum get _ethereum;
12+
external Ethereum? get _ethereum;
1313

1414
/// Extension to load obtain the `ethereum` window property injected by
1515
/// Ethereum browser plugins.

0 commit comments

Comments
 (0)