Files
pixel.horse/src/ts/bootstrap.ts
T
Eliot Partridge caf70a864f Revert codestyle changes (#40)
* Revert "7f7efbb94bab8574e42d942ad82d414e007b2970"

Code style changes should probably be part of a PR
2019-08-30 10:53:14 -05:00

14 lines
559 B
TypeScript

import './bootstrap-common';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './components/app/app.module';
import { host, local } from './client/data';
if (DEVELOPMENT || local || host === `${location.protocol}//${location.host}/`) {
if (window.opener && window.opener.postMessage && window.URL) {
const path = location.href.replace(host, '');
window.opener.postMessage({ type: 'loaded-page', path }, '*');
}
platformBrowserDynamic().bootstrapModule(AppModule, { preserveWhitespaces: true });
}