Spaces:
Sleeping
Sleeping
Omar ID EL MOUMEN
commited on
Commit
·
34d4681
1
Parent(s):
4db63fb
Mini-patch #1
Browse files- static/script.js +3 -3
static/script.js
CHANGED
@@ -162,11 +162,11 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
162 |
return;
|
163 |
}
|
164 |
let t = "";
|
165 |
-
if(data.titles
|
166 |
data.titles.forEach(title => {
|
167 |
-
t += title + "<br>";
|
168 |
});
|
169 |
-
popupText.
|
170 |
} else {
|
171 |
popupText.textContent = data.titles;
|
172 |
}
|
|
|
162 |
return;
|
163 |
}
|
164 |
let t = "";
|
165 |
+
if(Array.isArray(data.titles)){
|
166 |
data.titles.forEach(title => {
|
167 |
+
t += title + "<br><br>";
|
168 |
});
|
169 |
+
popupText.innerHTML = t;
|
170 |
} else {
|
171 |
popupText.textContent = data.titles;
|
172 |
}
|