Skip to content

Commit

Permalink
remove element after test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorin-Oakenpants authored May 20, 2022
1 parent 3cd3373 commit 36f9d92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,12 @@ function get_element_keys() {
//console.debug(keys.join("\n"))
let hash = mini_sha1(keys.join(), "elements keys")
dom.elementkeys.innerHTML = hash + buildButton("15", sName, keys.length)
// remove element
try {document.getElementById("html-element-version").remove()} catch(e) {}
return resolve("element_keys:"+ hash)
} catch (error) {
// remove element
try {document.getElementById("html-element-version").remove()} catch(e) {}
dom.elementkeys.innerHTML = zB0
return resolve("element_keys:"+ zB0)
}
Expand Down

0 comments on commit 36f9d92

Please sign in to comment.