summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/static/js/ogcp.js5
-rw-r--r--ogcp/templates/base.html2
2 files changed, 6 insertions, 1 deletions
diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js
index 1b6d888..3342ed8 100644
--- a/ogcp/static/js/ogcp.js
+++ b/ogcp/static/js/ogcp.js
@@ -5,6 +5,11 @@ let updateTimeoutId = null;
async function show_client_mac(pill_id) {
const pill = $('#' +pill_id);
+
+ if (!pill.length) {
+ return
+ }
+
const ip = pill.html().split('<br>')[1]
if (!macs.get(ip)) {
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html
index 49f9804..b54aed3 100644
--- a/ogcp/templates/base.html
+++ b/ogcp/templates/base.html
@@ -111,7 +111,7 @@
<!-- ChartJS -->
<script src="{{ url_for('static', filename='AdminLTE/plugins/chart.js/Chart.min.js') }}"></script>
- <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=3"></script>
+ <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=4"></script>
<script>
// error messages