Update and rename IPInfo.js to IPInf.js

This commit is contained in:
Shawn
2019-07-22 17:11:49 +08:00
committed by GitHub
parent 0cc7263ce4
commit 5a21db0c9c

View File

@@ -21,7 +21,7 @@ var flags = new Map([[ "AC" , "🇦🇨" ] , [ "AF" , "🇦🇫" ] , [ "AI" , "
var body = $response.body; var body = $response.body;
//var bd=body.split('\n')[1]; //var bd=body.split('\n')[1];
var obj = JSON.parse(body); var obj = JSON.parse(body);
//$notify("TEST","test",bd); $notify("TEST","test",body);
var title =flags.get(obj['country_code']) + ' '+ obj['country_name']; var title =flags.get(obj['country_code']) + ' '+ obj['country_name'];
var subtitle =''+ValidCheck(obj['city'])+'-'+'('+ValidCheck(obj['continent_name'])+')'+''; var subtitle =''+ValidCheck(obj['city'])+'-'+'('+ValidCheck(obj['continent_name'])+')'+'';
var ip = obj['ip']; var ip = obj['ip'];