function openNewTab ( ) { chrome . tabs . create ( { url : "chrome://newtab" , } ) ; } if ( process . env . BUILD_TARGET === "chromium" ) { chrome . browserAction . onClicked . addListener ( openNewTab ) ; chrome . runtime . onInstalled . addListener ( ( details ) => { if ( details && details . reason && details . reason == "install" ) openNewTab ( ) ; } ) ; }