@pushword/js-helper 0.0.79 → 0.0.80

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/helpers.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushword/js-helper",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "description": "Pushword front end helpers. ",
5
5
  "author": "Robin@PiedWeb <contact@piedweb.com>",
6
6
  "license": "MIT",
package/src/helpers.js CHANGED
@@ -205,7 +205,7 @@ export function addClassForNormalUser(attribute = 'data-acinb') {
205
205
  var classToAdd = element.getAttribute(attribute);
206
206
  element.removeAttribute(attribute);
207
207
  element.classList.add(' ' + classToAdd);
208
- if ((' ' + classToAdd + ' ').contains(' block ')) {
208
+ if ((' ' + classToAdd + ' ').contains('block ')) {
209
209
  element.classList.remove('hidden');
210
210
  }
211
211
  });