const IDENTITY_L10NID_MATCH_INDEX = 1; browser.runtime.sendMessage('get-identities').then(reply=> { if (reply) { console.log('reply from sdk addon: ', reply); reply.content.identities.forEach(identity=> { let identityName = identity.name; console.log('identityName: ', identityName); if (typeof identityName === 'undefined') { identityName = identity.l10nID.match(/userContext(\w*)\.label/)[IDENTITY_L10NID_MATCH_INDEX]; } const identityRow = `