Skip to content

Commit

Permalink
dapp: rm unused comments
Browse files Browse the repository at this point in the history
planning to be readded in follow-up PR: #16250
  • Loading branch information
digiwand committed Nov 2, 2022
1 parent 61ed554 commit 1b9e298
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions app/scripts/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ const setupPageStreams = () => {

const setupExtensionStreams = () => {
extensionPort = browser.runtime.connect({ name: CONTENT_SCRIPT });
// extensionPort.onMessage.addListener(extensionStreamMessageListener);
extensionStream = new PortStream(extensionPort);

// create and connect channel muxers
Expand Down Expand Up @@ -490,30 +489,6 @@ function logStreamDisconnectWarning(remoteLabel, error) {
);
}

/**
* The function send message to inpage to notify it of extension stream connection
* This is used as notification to replay any pending messages in MV3
*/
// function extensionStreamMessageListener(msg) {
// if (isManifestV3 && msg.name === 'CONNECTION_READY') {
// window.postMessage(
// {
// target: INPAGE, // the post-message-stream "target"
// data: {
// // this object gets passed to obj-multiplex
// name: PROVIDER, // the obj-multiplex channel name
// data: {
// jsonrpc: '2.0',
// method: 'METAMASK_EXTENSION_STREAM_CONNECT',
// },
// },
// },
// window.location.origin,
// );
// extensionPort.onMessage.removeListener(extensionStreamMessageListener);
// }
// }

/**
* This function must ONLY be called in pump destruction/close callbacks.
* Notifies the inpage context that streams have failed, via window.postMessage.
Expand Down

0 comments on commit 1b9e298

Please sign in to comment.