mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
* Revert "7f7efbb94bab8574e42d942ad82d414e007b2970" Code style changes should probably be part of a PR
14 lines
559 B
TypeScript
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 });
|
|
}
|