Skip to content

Commit fa774c3

Browse files
authored
Merge pull request #93 from jngbng/master
handle type error in getCookies
2 parents ab88250 + 8add0d6 commit fa774c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/base.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ class FlutterWebviewPlugin {
155155
_instance = null;
156156
}
157157

158-
Future<Map<String, dynamic>> getCookies() async {
158+
Future<Map<String, String>> getCookies() async {
159159
final cookiesString = await evalJavascript("document.cookie");
160-
final cookies = {};
160+
final cookies = <String, String>{};
161161

162162
if (cookiesString?.isNotEmpty == true) {
163163
cookiesString.split(";").forEach((String cookie) {

0 commit comments

Comments
 (0)