Skip to content

Commit

Permalink
[call-me] - fix tooltip 4 mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 5, 2025
1 parent 63431f2 commit 4aefa2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ async function fetchRandomImage() {

// Initialize tooltips and handle hiding them when clicked
function handleToolTip() {
if (isMobileDevice) return;

const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-toggle="tooltip"]'));
const tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
Expand Down

0 comments on commit 4aefa2c

Please sign in to comment.