Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import 'reflect-metadata';
import Application from './Application';
import consoleFrameStyle from './site-style';
import { ConsoleFramePresenterImpl } from './presenters/ConsoleFramePresenter';
import { container } from 'tsyringe';
import './di';
if (window.self === window.top) {
new ConsoleFramePresenterImpl().initialize();
}
try {
const app = container.resolve(Application);
app.run();
} catch (e) { console.error(e); }
const style = window.document.createElement('style');
style.textContent = consoleFrameStyle;
window.document.head.appendChild(style);
public get globalConfiguration () {
return container.resolve(GlobalConfigurationService);
}
}
import 'reflect-metadata';
import { container } from 'tsyringe';
import Application from './Application';
const app = container.resolve(Application);
app.run();
constructor (private arianeeConfig: ArianeeConfig) {
container.resolve(ConfigurationService).arianeeConfiguration = arianeeConfig;
this.web3 = container.resolve(Web3Service).web3;
}
constructor () {
this.globalConfigurationService = container.resolve(GlobalConfigurationService);
}
constructor (private arianeeConfig: ArianeeConfig) {
container.resolve(ConfigurationService).arianeeConfiguration = arianeeConfig;
this.web3 = container.resolve(Web3Service).web3;
}