Skip to content

Commit

Permalink
update pushword/js-helper version
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Sep 13, 2022
1 parent ba06b92 commit e9339d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/js-helper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pushword/js-helper",
"version": "0.0.80",
"version": "0.0.81",
"description": "Pushword front end helpers. ",
"author": "Robin@PiedWeb <contact@piedweb.com>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/js-helper/src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ export function addClassForNormalUser(attribute = 'data-acinb') {
[].forEach.call(document.querySelectorAll('[' + attribute + ']'), function (element) {
var classToAdd = element.getAttribute(attribute);
element.removeAttribute(attribute);
element.classList.add(' ' + classToAdd);
if ((' ' + classToAdd + ' ').contains('block ')) {
element.classList.add(classToAdd);
if ((' ' + classToAdd + ' ').contains(' block ')) {
element.classList.remove('hidden');
}
});
Expand Down

0 comments on commit e9339d1

Please sign in to comment.