From 086a8dabbb57f0d3ef0572ea536cac7b593b7fc6 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Sun, 8 Aug 2021 22:37:22 +0200 Subject: [PATCH] Fix xo Signed-off-by: yubiuser --- scripts/pi-hole/js/messages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pi-hole/js/messages.js b/scripts/pi-hole/js/messages.js index 2f836139..c0672e7e 100644 --- a/scripts/pi-hole/js/messages.js +++ b/scripts/pi-hole/js/messages.js @@ -6,7 +6,7 @@ * Please see LICENSE file for your rights under this license. */ /* global utils:false */ - +var table; var token = $("#token").text(); function renderTimestamp(data, type) { @@ -94,7 +94,7 @@ function renderMessage(data, type, row) { } $(function () { - $("#messagesTable").DataTable({ + table = $("#messagesTable").DataTable({ ajax: { url: "api_db.php?messages", data: { token: token },