mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Remove unused function isMobile()
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user