aboutsummaryrefslogtreecommitdiff
path: root/src/content/index.ts
blob: 660ebf56d7ff6e925b572cdeeafbaa4d0762788f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { ConsoleFramePresenterImpl } from './presenters/ConsoleFramePresenter';
import consoleFrameStyle from './site-style';
import * as routes from './routes';

if (window.self === window.top) {
  routes.routeMasterComponents();

  new ConsoleFramePresenterImpl().initialize();
}

routes.routeComponents();


let style = window.document.createElement('style');
style.textContent = consoleFrameStyle;
window.document.head.appendChild(style);