Skip to content

Commit

Permalink
Update lionbotchatbot.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush4921 committed Aug 5, 2021
1 parent d24b8f9 commit 3e82e24
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lionbotchatbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down Expand Up @@ -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 = [];
Expand Down

0 comments on commit 3e82e24

Please sign in to comment.