-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
19 lines (17 loc) · 729 Bytes
/
index.ts
File metadata and controls
19 lines (17 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { WeatherApi } from "./modules/API/WeatherApi";
import { Elements } from "./modules/Client/Elements";
import { Client } from "./modules/Client/Main";
import Settings from "./modules/Client/Settings";
import { LocalStorage } from "./modules/Misc/LocalStorage";
import Notifications from "./modules/Misc/Notifications";
import { App } from "./modules/Types/Global";
App.isDev = location.hostname === "localhost";
App.storage = new LocalStorage("_mopsflWeather");
App.elements = new Elements();
App.settings = new Settings()
App.client = new Client().init();
App.api = new WeatherApi().init();
App.notifications = new Notifications()
App.isDev && ((window as any).App = App)
App.client.LoadInitWeatherData()
export { App };