Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit d4a8d70

Browse files
authored
Small tweak (#295)
1 parent 9e80b8d commit d4a8d70

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/html.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,7 @@ class HtmlWebSocketChannel extends StreamChannelMixin
7878
: this(
7979
WebSocket(
8080
url.toString(),
81-
(protocols?.toList() ?? const <String>[])
82-
.map((e) => e.toJS)
83-
.toList()
84-
.toJS,
81+
protocols?.map((e) => e.toJS).toList().toJS ?? JSArray(),
8582
)..binaryType = (binaryType ?? BinaryType.list).value,
8683
);
8784

0 commit comments

Comments
 (0)