export const clearInterfaceOnDuplicatePageload = ( channel , speakInterface ) => { channel . postMessage ( 'New Newest page' ) ; channel . addEventListener ( 'message' , ( { data } ) => { if ( data === 'New Newest page' ) { speakInterface . textContent = 'Use more recent newest tab' ; channel . close ( ) ; } } ) ; } ;