diff --git a/ogcp/static/js/ogcp.js b/ogcp/static/js/ogcp.js
index 548122b..af95dde 100644
--- a/ogcp/static/js/ogcp.js
+++ b/ogcp/static/js/ogcp.js
@@ -10,7 +10,7 @@ async function show_client_mac(pill_id) {
return
}
- const ip = pill.html().split('
')[1]
+ const ip = $('[name="ip"]', pill).html()
if (!macs.get(ip)) {
const resp = await fetch('/client/mac?ip=' + ip);
@@ -19,7 +19,7 @@ async function show_client_mac(pill_id) {
}
const mac = macs.get(ip)
- pill.append('
' + mac);
+ pill.append('