()
| 23 | * @return {Promise.<undefined>} |
| 24 | */ |
| 25 | export async function initNativeMessaging() { |
| 26 | // check for GPGME installation and connect |
| 27 | try { |
| 28 | gpgme = await gpgmejs.init({timeout: GPGME_INIT_TIMEOUT}); |
| 29 | } catch (e) { |
| 30 | console.log('GPGME is not available.', e.code); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Register runtime event handlers |