mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
Archive commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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 });
|
||||
}
|
||||
Reference in New Issue
Block a user