fixing markers
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import { cfg } from './config.mjs'
|
||||
import { writeFile, readFile } from 'fs/promises'
|
||||
import { existsSync } from 'fs'
|
||||
import { readFile } from 'fs/promises'
|
||||
import { resolve, dirname } from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
const DIR = dirname(fileURLToPath(import.meta.url))
|
||||
const SHAPES_PATH = resolve(DIR, 'public', 'aircraft.js')
|
||||
const SHAPES_PATH = resolve(DIR, 'public', 'aircraft.json')
|
||||
|
||||
export async function getShapes() {
|
||||
JSON.parse(await readFile(SHAPES_PATH, 'utf8'))
|
||||
|
||||
Reference in New Issue
Block a user