🔀 Merge pull request #1869 from s-weigand/fix/typo-in-ip-api-provider-check

🩹 Fix typo in Public Ip Widget endpoint definition for ip-api provider
This commit is contained in:
Alicia Sykes 2025-07-19 07:38:08 +01:00 committed by GitHub
commit 2d36386507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ export default {
return `${widgetApiEndpoints.publicIp2}?apiKey=${this.apiKey}`;
} else if (this.provider === 'ip2location.io') {
return `${widgetApiEndpoints.publicIp4}?key=${this.apiKey}`;
} else if (this.provider === 'ipapi') {
} else if (this.provider === 'ip-api') {
return widgetApiEndpoints.publicIp3;
}
return widgetApiEndpoints.publicIp;