Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Update tmTimer.js
Browse files Browse the repository at this point in the history
Added validation for mobile devices.
  • Loading branch information
FANMixco authored Dec 30, 2018
1 parent 9fc190d commit d7fdcb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/tmTimer.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function btnStopClick(isAdded) {
}

function startBeep() {
if (isBeepEnabled === "true") {
if (isBeepEnabled === "true" && !(os == "iOS" || os == "Android")) {
if (green === 1 || yellow === 1 || red === 1) {
audioElement.play();
setTimeout(function() {
Expand Down Expand Up @@ -294,7 +294,7 @@ function startTimer() {
}

function startClapping() {
if (isClappingEnabled === "true")
if (isClappingEnabled === "true" && !(os == "iOS" || os == "Android"))
{
audioElementClapping.play();
setTimeout(function() {
Expand All @@ -304,7 +304,8 @@ function startClapping() {
}

function stopClapping() {
audioElementClapping.pause();
if (!(os == "iOS" || os == "Android"))
audioElementClapping.pause();
}

function changeImages(extra) {
Expand Down

0 comments on commit d7fdcb7

Please sign in to comment.