cartodb-4.42/lib/assets/javascripts/new-dashboard/utils/ip-address.js
2024-04-06 05:25:13 +00:00

6 lines
170 B
JavaScript

export function getCurrentIPAddress () {
return fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(response => response.ip);
}