export const openNewTab = ( url ) => { const element = document . createElement ( 'a' ) ; element . setAttribute ( 'href' , `${ url }` ) ; element . setAttribute ( 'target' , `_blank` ) ; element . style . display = 'none' ; document . body . appendChild ( element ) ; element . click ( ) ; document . body . removeChild ( element ) ; } ;