app/scripts/contentscript.js
/**
 * Error handler for page to plugin stream disconnections
 *
 * @param {string} remoteLabel Remote stream name
 * @param {Error} err Stream connection error
 */
Error handler for page to plugin stream disconnections
@param {string} remoteLabel Remote stream name
@param {Error} err Stream connection error
Error handler for page to plugin stream disconnections @param { string } remoteLabel Remote stream name @param { Error } err Stream connection error
function logStreamDisconnectWarning (remoteLabel, err) {
  let warningMsg = `MetamaskContentscript - lost connection to ${remoteLabel}`
  if (err) warningMsg += '\n' + err.stack
  console.warn(warningMsg)
}
function logStreamDisconnectWarning ( remoteLabel , err ) { let warningMsg = ` ${ remoteLabel } ` if ( err ) warningMsg += '\n' + err . stack console . warn ( warningMsg ) }
Error handler for page to plugin stream disconnections
 @param {string} remoteLabel Remote stream name
 @param {Error} err Stream connection error
Error handler for page to plugin stream disconnections @param { string } remoteLabel Remote stream name @param { Error } err Stream connection error