export class MessageHandler { browser : any ; runtime : any ; constructor ( ) { if ( chrome ) { this . browser = chrome ; } this . runtime = this . browser . runtime ; } sendMessage ( message ) { this . runtime . sendMessage ( message , response => { } ) ; console . log ( 'Message sent' ) ; } }