@@ -29,12 +29,12 @@ app.use(cors({
2929 origin : '*'
3030} ) ) ;
3131
32- conn = new DXCluster ( )
32+ var conn = new DXCluster ( )
3333var spots = [ ] ;
3434
3535app . get ( config . baseUrl + '/spot/:qrg' , function ( req , res ) { // Fallback Route
3636 var qrg = req . params . qrg ;
37- single_spot = get_singlespot ( qrg ) ;
37+ var single_spot = get_singlespot ( qrg ) ;
3838 res . json ( single_spot ) ;
3939 single_spot = { } ;
4040} ) ;
@@ -44,7 +44,7 @@ app.get(config.baseUrl + '/spots', function(req, res){ // Fallback Route
4444} ) ;
4545
4646app . get ( config . baseUrl + '/spots/:band' , function ( req , res ) { // Fallback Route
47- bandspots = get_bandspots ( req . params . band ) ;
47+ var bandspots = get_bandspots ( req . params . band ) ;
4848 res . json ( bandspots ) ;
4949 bandspots = [ ] ;
5050} ) ;
@@ -237,7 +237,7 @@ async function dxcc_lookup(call) {
237237 let payload = { } ;
238238 payload . key = config . dxcc_lookup_wavelog_key ;
239239 payload . callsign = call ;
240- result = await postData ( config . dxcc_lookup_wavelog_url , payload ) ;
240+ var result = await postData ( config . dxcc_lookup_wavelog_url , payload ) ;
241241 payload = { } ;
242242 let returner = { } ;
243243 returner . cont = result . cont ;
@@ -281,7 +281,7 @@ async function postData(url = "", data = {}) {
281281 referrerPolicy : "no-referrer" , // no-referrer, *no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
282282 body : JSON . stringify ( data ) , // body data type must match "Content-Type" header
283283 } ) ;
284- returner = await response . json ( ) ;
284+ var returner = await response . json ( ) ;
285285 return returner ;
286286}
287287
0 commit comments