MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / setLogo

Method setLogo

src/client-API/client-api.js:362–366  ·  view source on GitHub ↗

* Set logo for keyring. The image is persisted in Mailvelope with a revision number, * therefore the method is only required after new keyring generation or if logo and revision number changes. * @param {String} dataURL - data-URL representing the logo, max. file size: ~10KB, max. image size:

(dataURL, revision)

Source from the content-addressed store, hash-verified

360 *
361 */
362 setLogo(dataURL, revision) {
363 return send('set-logo', {identifier: this.identifier, dataURL, revision}).then(() => {
364 this.logoRev = revision;
365 });
366 }
367
368 /**
369 * @typedef {Object} UserId

Callers

nothing calls this directly

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected