Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

136
Vistas
Checking whether BroadcastChannel API is supported or not in the browser?

I want to use broadcastchannel for the supported browsers for unsupported ones like safai, i use the else code

I want to check whether the BroadcastChannel is supported or not and accordingly ride the code to else part

The below code gives error enter image description here

if(BroadcastChannel) {
  new BroadcastChannel('oauthComplete').postMessage({
      email: 'mail@gmail.com',
      serviceName: '4sdbhfg@mx.co.us.user'
  });
}
else
  alert("Please close this tab and reopen");

How do I check whether BroadcastChannel is supported or not?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda