2020-03-02 23:15:44 +01:00
|
|
|
import { injectable } from 'inversify';
|
2021-01-30 22:34:36 +01:00
|
|
|
import { Service } from '../../core/container';
|
2020-11-09 18:15:30 +01:00
|
|
|
import { inject } from '../../core/inject';
|
|
|
|
import { FileAppWindow } from './file-app-window';
|
2020-02-08 23:26:57 +01:00
|
|
|
|
|
|
|
@injectable()
|
2020-11-09 18:15:30 +01:00
|
|
|
export class MainAppWindow extends FileAppWindow {
|
2021-01-30 22:34:36 +01:00
|
|
|
public constructor(@inject(Service.LOGGER) logger: LoggerInterface) {
|
2021-01-17 19:40:24 +01:00
|
|
|
super(logger, 'frontend/index.html', {
|
2020-02-08 23:26:57 +01:00
|
|
|
webPreferences: {
|
|
|
|
nodeIntegration: true,
|
2021-01-30 22:34:36 +01:00
|
|
|
contextIsolation: false,
|
2020-02-08 23:26:57 +01:00
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|