app/scripts/popup-core.js
/**
 * Asynchronously initializes the MetaMask popup UI
 *
 * @param {{ container: Element, connectionStream: * }} config Popup configuration object
 * @param {Function} cb Called when initialization is complete
 */
Asynchronously initializes the MetaMask popup UI
@param {{ container: Element, connectionStream: * }} config Popup configuration object
@param {Function} cb Called when initialization is complete
Asynchronously initializes the MetaMask popup UI @param {{ container : Element connectionStream : * }} config Popup configuration object @param { Function } cb Called when initialization is complete
function initializePopup ({ container, connectionStream }, cb) {
  async.waterfall([
   (cb) => connectToAccountManager(connectionStream, cb),
   (accountManager, cb) => launchMetamaskUi({ container, accountManager }, cb),
  ], cb)
}
function initializePopup ( { container , connectionStream } , cb ) { async . waterfall ( [ ( cb ) => connectToAccountManager ( connectionStream , cb ) , ( accountManager , cb ) => launchMetamaskUi ( { container , accountManager } , cb ) , ] , cb ) }
Asynchronously initializes the MetaMask popup UI
 @param {{ container: Element, connectionStream: * }} config Popup configuration object
 @param {Function} cb Called when initialization is complete
Asynchronously initializes the MetaMask popup UI @param {{ container : Element connectionStream : * }} config Popup configuration object @param { Function } cb Called when initialization is complete
// setup app