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

736
Vistas
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
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