MOBILE-3833 core: Expose urlSchemes in development
parent
d80ba6698b
commit
16ad2edc3a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue