nodebb-plugin-composer-default 10.0.34 → 10.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-composer-default",
3
- "version": "10.0.34",
3
+ "version": "10.0.35",
4
4
  "description": "Default composer for NodeBB",
5
5
  "main": "library.js",
6
6
  "repository": {
@@ -576,14 +576,13 @@ define('composer', [
576
576
  }
577
577
 
578
578
  function handleHelp(postContainer) {
579
- var helpBtn = postContainer.find('[data-action="help"]');
580
- socket.emit('plugins.composer.renderHelp', function (err, html) {
581
- if (!err && html && html.length > 0) {
582
- helpBtn.on('click', function () {
583
- bootbox.dialog({
584
- size: 'large',
585
- message: html,
586
- });
579
+ const helpBtn = postContainer.find('[data-action="help"]');
580
+ helpBtn.on('click', async function () {
581
+ const html = await socket.emit('plugins.composer.renderHelp');
582
+ if (html && html.length > 0) {
583
+ bootbox.dialog({
584
+ size: 'large',
585
+ message: html,
587
586
  });
588
587
  }
589
588
  });