Ignore whitespace
This commit is contained in:
parent
98f97ccc0a
commit
718287544b
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,10 @@
|
||||||
let value = array[index];
|
let value = array[index];
|
||||||
let tag = window.document.createElement("li");
|
let tag = window.document.createElement("li");
|
||||||
|
|
||||||
|
if(!value || value === ' ') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
tag.className = "tag";
|
tag.className = "tag";
|
||||||
tag.textContent = value;
|
tag.textContent = value;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue