fix: format code

This commit is contained in:
ikechan8370 2023-04-14 21:44:06 +08:00
parent 2679206be9
commit 414eb1b098
12 changed files with 819 additions and 908 deletions

View file

@ -594,7 +594,7 @@ export async function isImage (link) {
}
}
export async function getPublicIP() {
export async function getPublicIP () {
try {
if (localIP === '') {
const res = await fetch('https://api.ipify.org?format=json')
@ -605,5 +605,4 @@ export async function getPublicIP() {
} catch (err) {
return '127.0.0.1'
}
}