Updates all <canvas> and <svg> elements with the data-jdenticon-value or data-jdenticon-hash attribute.
jdenticon()
| Availability | Browser | Module | Node.js |
|---|---|---|---|
jdenticon() | Yes | No | No |
This method is only available in the standalone UMD build of Jdenticon. If you are consuming Jdenticon using a bundler like Webpack or Rollup, you are most likely using the module build which does not include this method. You can use jdenticon.update("[data-jdenticon-value],[data-jdenticon-hash]") to update all icons if needed.
Be careful with this function – it will rerender all identicons on the page! On static pages or server generated pages, there is no need to call this method manually unless you have disabled automatic icon rendering.