diff --git a/lionbotchatbot.js b/lionbotchatbot.js index 4c5407f..b310d40 100644 --- a/lionbotchatbot.js +++ b/lionbotchatbot.js @@ -371,6 +371,7 @@ body_tag.insertAdjacentHTML("beforeend", html_to_append); var element = $(".floating-chat"); var bubble = $(".bubble"); +bubble.hide(); var myStorage = localStorage; if (!myStorage.getItem("chatID")) { @@ -419,6 +420,15 @@ function closeElement() { }, 500); } +if ( + url == "https://www.lionsbefrienders.org.sg/" && + !/Android|webOS|iPhone|iPad|Mac|Macintosh|iPod|BlackBerry|IEMobile|Opera Mini/i.test( + navigator.userAgent + ) +) { + bubble.show(); +} + function createUUID() { // http://www.ietf.org/rfc/rfc4122.txt var s = [];