2023-01-28 02:21:33 +01:00

19 lines
595 B
TypeScript

import { getActions, getGlobal } from '../global';
import { IS_MULTITAB_SUPPORTED } from '../util/environment';
import { DEBUG } from '../config';
// eslint-disable-next-line import/no-cycle
export { default as Main } from '../components/main/Main';
export { default as LockScreen } from '../components/main/LockScreen';
if (DEBUG) {
// eslint-disable-next-line no-console
console.log('>>> FINISH LOAD MAIN BUNDLE');
}
const { passcode: { isScreenLocked }, connectionState } = getGlobal();
if (!connectionState && !isScreenLocked && !IS_MULTITAB_SUPPORTED) {
getActions().initApi();
}