MOBILE-3833 core: Expose urlSchemes in development

main
Noel De Martin 2022-02-21 12:33:17 +01:00
parent d80ba6698b
commit 16ad2edc3a
1 changed files with 3 additions and 0 deletions

View File

@ -14,16 +14,19 @@
import { CoreConfig, CoreConfigProvider } from '@services/config';
import { CoreDB, CoreDbProvider } from '@services/db';
import { CoreCustomURLSchemes, CoreCustomURLSchemesProvider } from '@services/urlschemes';
import { CoreConstants } from '../constants';
type DevelopmentWindow = Window & {
configProvider?: CoreConfigProvider;
dbProvider?: CoreDbProvider;
urlSchemes?: CoreCustomURLSchemesProvider;
};
function initializeDevelopmentWindow(window: DevelopmentWindow) {
window.configProvider = CoreConfig.instance;
window.dbProvider = CoreDB.instance;
window.urlSchemes = CoreCustomURLSchemes.instance;
}
export default function(): void {