JS: Converted http service to ts

This commit is contained in:
Dan Brown
2024-07-18 15:13:14 +01:00
parent 634b0aaa07
commit fb87fb5750
6 changed files with 234 additions and 244 deletions

View File

@ -1,5 +1,5 @@
import {EventManager} from './services/events.ts';
import * as httpInstance from './services/http';
import {HttpManager} from './services/http.ts';
import Translations from './services/translations';
import * as componentMap from './components';
import {ComponentStore} from './services/components.ts';
@ -20,7 +20,7 @@ window.importVersioned = function importVersioned(moduleName) {
};
// Set events and http services on window
window.$http = httpInstance;
window.$http = new HttpManager();
window.$events = new EventManager();
// Translation setup