Skip to content

Commit

Permalink
maxmind info
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Arcuri committed Feb 13, 2024
1 parent f40eaaf commit 79fb9e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orochi/templates/website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ <h5 class="offcanvas-title" id="leftNoteLabel">History Log</h5>
"targets": "maxmind" ,
"render": function ( data, type, row, meta ) {
tmp_data = data.replace(/^"(.*)"$/, '$1')
if(!(["0.0.0.0", "*", "::"].includes(tmp_data))){
if(!(["0.0.0.0", "*", "::", ""].includes(tmp_data))){
return data + ' <a class="btn btn-sm btn-primary maxmind-info" data-ip="' + tmp_data + '" href="#"><i class="fa-solid fa-map-location"></i></a>';
}else{
return data;
Expand Down

0 comments on commit 79fb9e0

Please sign in to comment.