fixed undefined as string
This commit is contained in:
parent
14c211be6a
commit
c1c2334794
|
@ -769,7 +769,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
{
|
{
|
||||||
target : "details[name=level1]",
|
target : "details[name=level1]",
|
||||||
apply : (e,d)=>{
|
apply : (e,d)=>{
|
||||||
if(!!d){
|
if(!!d && d !== "undefined"){
|
||||||
e.alt = e.title = d
|
e.alt = e.title = d
|
||||||
if(sessionStorage.getItem(d) === "open") e.open = "open";
|
if(sessionStorage.getItem(d) === "open") e.open = "open";
|
||||||
else e.removeAttribute("open");
|
else e.removeAttribute("open");
|
||||||
|
|
Loading…
Reference in New Issue