From 793a6ec49fb6950ddf5df35b2091cb01f8eb7617 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Thu, 2 Jan 2020 19:49:00 +0200 Subject: [PATCH] Remove unused function isMobile() Signed-off-by: XhmikosR --- scripts/pi-hole/js/index.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index 026b7394..8348a96e 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -742,26 +742,7 @@ function updateSummaryData(runOnce) { } $(document).ready(function() { - var isMobile = { - Windows: function() { - return /IEMobile/i.test(navigator.userAgent); - }, - Android: function() { - return /Android/i.test(navigator.userAgent); - }, - BlackBerry: function() { - return /BlackBerry/i.test(navigator.userAgent); - }, - iOS: function() { - return /iPhone|iPad|iPod/i.test(navigator.userAgent); - }, - any: function() { - return isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Windows(); - } - }; - // Pull in data via AJAX - updateSummaryData(); var ctx = document.getElementById("queryOverTimeChart").getContext("2d");