Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update pushword/js-helper version
  • Loading branch information
RobinDev committed Jan 20, 2022
1 parent 7244abc commit 4db41f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/js-helper/package.json
@@ -1,6 +1,6 @@
{
"name": "@pushword/js-helper",
"version": "0.0.56",
"version": "0.0.57",
"description": "Pushword front end helpers. ",
"author": "Robin@PiedWeb <contact@piedweb.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/js-helper/src/helpers.js
Expand Up @@ -199,7 +199,7 @@ export async function uncloakLinks(attribute = "data-rot", when = "onEvent") {
if (element.getAttribute(attribute) === null) {
var element = element.closest("[" + attribute + "]");
}
if (element.getAttribute(attribute) === null) return;
if (element === null || element.getAttribute(attribute) === null) return;
var link = document.createElement("a");
var href = element.getAttribute(attribute);
element.removeAttribute(attribute);
Expand Down

0 comments on commit 4db41f7

Please sign in to comment.