Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f6cb5e9

Browse files
authoredOct 18, 2022
Merge pull request #3237 from wdscxsj/patch-9
Remove use of error.message in onerror()
2 parents 2f37897 + 0487c35 commit f6cb5e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎5-network/11-websocket/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ socket.onclose = function(event) {
5656
};
5757
5858
socket.onerror = function(error) {
59-
alert(`[error] ${error.message}`);
59+
alert(`[error]`);
6060
};
6161
```
6262

0 commit comments

Comments
 (0)
Please sign in to comment.