Skip to content

Commit 54aaac6

Browse files
jpuridigiwand
andauthored
Update app/scripts/contentscript.js
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
1 parent 3d8a9ad commit 54aaac6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/scripts/contentscript.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,13 +465,12 @@ function logStreamDisconnectWarning(remoteLabel, error) {
465465
}
466466

467467
/**
468-
* The function send message to inpage to notify it of extension stream connection
469-
* This is used as notification to replay any pending messages in MV3
468+
* The function notifies inpage when the extension stream connection is ready. When the
469+
* 'metamask_chainChanged' method is received from the extension, it implies that the
470+
* background state is completely initialized and it is ready to process method calls.
471+
* This is used as a notification to replay any pending messages in MV3.
470472
*
471-
* Message is sent to inpage when method 'metamask_chainChanged' is receined from extension,
472-
* this method signifies that background state is completley initislised and it is ready to process method calls.
473-
*
474-
* @param {string} msg - instance of message received
473+
* @param {object} chunk - instance of message received
475474
*/
476475
function extensionStreamMessageListener(msg) {
477476
if (

0 commit comments

Comments
 (0)