Use TSyringe on content script
This commit is contained in:
parent
71f3a1ea2d
commit
1666e626b0
35 changed files with 398 additions and 433 deletions
|
@ -1,15 +1,19 @@
|
|||
import { ConsoleFramePresenterImpl } from './presenters/ConsoleFramePresenter';
|
||||
import 'reflect-metadata';
|
||||
|
||||
import Application from './Application';
|
||||
import consoleFrameStyle from './site-style';
|
||||
import * as routes from './routes';
|
||||
import { ConsoleFramePresenterImpl } from './presenters/ConsoleFramePresenter';
|
||||
import { container } from 'tsyringe';
|
||||
import './di';
|
||||
|
||||
if (window.self === window.top) {
|
||||
routes.routeMasterComponents();
|
||||
|
||||
new ConsoleFramePresenterImpl().initialize();
|
||||
}
|
||||
|
||||
routes.routeComponents();
|
||||
|
||||
try {
|
||||
let app = container.resolve(Application);
|
||||
app.run();
|
||||
} catch (e) { console.error(e); }
|
||||
|
||||
let style = window.document.createElement('style');
|
||||
style.textContent = consoleFrameStyle;
|
||||
|
|
Reference in a new issue