This is how the RevealJS Slides plugin does it:
Notes:
- If the plugin targets only recent versions of Joplin, the
try { ... } catch(error) {
is unnecessary.
- The
as any
cast is present because the updated .versionInfo return type hasn't been generated/published to NPM.
4 Likes