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

735
Views
Uncaught ReferenceError: Audio is not defined

Heyo, I wanted to publish an extention to the google store but I couldn't with manifest v2.

Currently trying to migrate to v3 but i'm getting Uncaught ReferenceError: Audio is not defined in my background.js.

Only using JS / HTML / CSS

EDIT : I also have a "Service worker registration failed" warning, might be related to that?

EDIT 2 : Seems to only have this problem when chrome starts. If i'm clicking on the extension's icon that opens the default popup everything is fine after that.

Is there a way to make it popup at the start of chrome or a way to fix that?

manifest.json

{
"manifest_version": 3,
"name": "test name", 
"description": "test description", 
"version": "0.1", 
"action": {   
 "default_popup": "index.html" 
},
"icons": { 
 "64" : "img/x.png" 
},
"background": {
"service_worker": "background.js"
},
"permissions": [
  "storage",
  "notifications"
]

}

background.js

notifsoundLive = "/mp3/barou.wav";
soundnotif = 0;


// Volume

var son = new Audio(notifsoundLive);

son.volume = .5;
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!