projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix error iterating on getElementsByClassName on mobile browsers
[vchess.git]
/
client
/
src
/
components
/
MoveList.vue
diff --git
a/client/src/components/MoveList.vue
b/client/src/components/MoveList.vue
index
6e3a90d
..
ded140d
100644
(file)
--- a/
client/src/components/MoveList.vue
+++ b/
client/src/components/MoveList.vue
@@
-79,8
+79,8
@@
export default {
processModalClick);
if ("ontouchstart" in window) {
// Disable tooltips on smartphones:
processModalClick);
if ("ontouchstart" in window) {
// Disable tooltips on smartphones:
- document.
getElementsByClassName("
tooltip").forEach(elt => {
- elt.classList.remove("tooltip")
;
+ document.
querySelectorAll("#aboveMoves .
tooltip").forEach(elt => {
+ elt.classList.remove("tooltip")
});
}
// Take full width on small screens:
});
}
// Take full width on small screens: