export class MessageHandler { browser : any ; runtime : any ; constructor ( ) { console . log ( 'Extension MessageHandler loaded' ) ; if ( chrome ) { this . browser = chrome ; } this . runtime = this . browser . runtime ; this . runtime . onMessage . addListener ( ( request , sender , sendResponse ) => { console . log ( request ) ; } ) ; } }