Files
fxl.codes.Weather/src/launch.ts
T
2025-06-04 19:22:19 -07:00

10 lines
322 B
TypeScript

import Substrate from "./substrate"
import Weather from "./weather"
const background = new Substrate("substrate-canvas", 20)
let weather: Weather
navigator.geolocation.getCurrentPosition(position => {
weather = new Weather(position.coords.latitude, position.coords.longitude)
}, () => {
weather = new Weather()
})