bootstrap.ts 1.1 KB

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Copyright © 2016-2019 Threema GmbH (https://threema.ch/).
  3. *
  4. * This file is part of Threema Web.
  5. *
  6. * Threema Web is free software: you can redistribute it and/or modify it
  7. * under the terms of the GNU Affero General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or (at
  9. * your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License
  17. * along with Threema Web. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. import config from '../src/config';
  20. import {MemoryLogger} from '../src/helpers/logger';
  21. // A dependency graph that contains any wasm must all be imported asynchronously.
  22. import('../src/app')
  23. .then(() => {
  24. // @ts-ignore
  25. window.config = config;
  26. console.info('Bundle loaded')
  27. })
  28. .catch((e) => console.error('Could not load bundle', e));