Fixed paths
This commit is contained in:
@@ -4,7 +4,7 @@ import { resolve, dirname } from 'path'
|
|||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url'
|
||||||
|
|
||||||
const DIR = dirname(fileURLToPath(import.meta.url))
|
const DIR = dirname(fileURLToPath(import.meta.url))
|
||||||
const SHAPES_PATH = resolve(DIR, 'public', 'aircraft.json')
|
const SHAPES_PATH = resolve(DIR, '../public/aircraft.json')
|
||||||
|
|
||||||
const history = new Map() // icao -> [{lat, lon, alt, ts}]
|
const history = new Map() // icao -> [{lat, lon, alt, ts}]
|
||||||
const MAX_HISTORY = 500
|
const MAX_HISTORY = 500
|
||||||
|
|||||||
Reference in New Issue
Block a user