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

210
Views
Apache2 Ubuntu navigator missing functions

I've been developing a web app with Apache2 which is supposed to run on a Raspberry pi running Ubuntu in the end.

Initial developing and testing is done on an Arch Linux machine (with httpd) and then transferred and further debugged on the pi.

Recently, I've started implementing controller input into the web app using javascript and the navigator.getGamepads() function. Everything working as expected on my Arch machine, but when i transfer the code to the pi, i get a "navigator.getGamepads is not a function" error.

When further investigating, I can indeed confirm that the function is missing using the firefox javascript console, as well as that the navigator object itself looks quite different for both pages (the Arch version, and the pi version).

Pi navigator: https://i.stack.imgur.com/RUN6U.png

Arch navigator: https://i.stack.imgur.com/ERBxT.png

Both screenshots are taken on the same machine, same browser, with the page loaded from both places in different tabs.

Has anyone experienced similar problem, and is there a fix?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Found an answer after some tinkering.

Turns out the browser (Firefox) will not expose all navigator functions unless the connection is handled through SSL (https).

about 4 years ago · Juan Pablo Isaza Report
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!