Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

133
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!