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

177
Views
How to handle a rejected call to `screen.orientation.unlock()` on firefox?

The spec states that a call to screen.orientation.unlock() returns void.

However Firefox throws an internal "Not supported" exception on the desktop browser.

Because nothing is returned, the following approaches do not appear to work:

screen
  .orientation.unlock()
  .catch(error => console.error('[Screen orientation]', error))
try {
  screen.orientation.unlock()
} catch (error) {
  console.error('[Screen orientation]', error)
}

Is there a way to handle / suppress this error?

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!