import { Injectable } from '@angular/core' ; import { WebContents , webContents } from 'electron' ; import { ElectronService } from '../core/electron.service' ; import { RequestHandler } from '../../../requestHandler' ; @ Injectable ( ) export class DebuggerService { requestHandler : typeof RequestHandler ; constructor ( private electronService ) { this . requestHandler = this . electronService . APP [ 'RequestHandler' ] as typeof RequestHandler ; this . requestHandler . Clear ( ) ; } Subscribe ( options , callback ) { this . requestHandler . Subscribe ( options , callback ) ; } }