mirror of
https://github.com/pi-hole/web.git
synced 2026-05-08 09:39:05 +01:00
db_graph.js: Fix IE 11
IE doesn't support `Array.includes()` Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -107,7 +107,7 @@ function updateQueriesOverTime() {
|
||||
|
||||
for (hour in data.ads_over_time[0]) {
|
||||
if ({}.hasOwnProperty.call(data.ads_over_time[0], hour)) {
|
||||
if(!dates.includes(parseInt(data.ads_over_time[0][hour])))
|
||||
if(dates.indexOf(parseInt(data.ads_over_time[0][hour])) === -1)
|
||||
{
|
||||
dates.push(parseInt(data.ads_over_time[0][hour]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user