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

192
Views
El extremo receptor no existe: sendMessage Background To popup

Busqué durante 1 hora mi respuesta pero nada que se ajuste a mi problema. Pido disculpas si fue un problema común. Así que tengo una secuencia de comandos emergente que tiene que esperar un mensaje del fondo. pero siempre me sale este error

Error: no se pudo establecer la conexión. El extremo receptor no existe.

aquí está mi ventana emergente

 $( document ).ready(function() { chrome.extension.getBackgroundPage().download(true, "test"); chrome.runtime.onMessage.addListener(function(request, sender, sendResponse){ console.log(request, sender, sendResponse); }); });

y aquí está mi fondo que es parte de mi solicitud http

 if(this.readyState ==3 && this.status ==200) { chrome.tabs.query({active: true, currentWindow: true},function(tabs) { chrome.tabs.sendMessage(tabs[0].id, "Loading", function(response) { console.log(response); }); }); }

y aquí está mi manifiesto

 `{ "name": "My extension axel", "version": "1.0", "description": "first extension", "icons":{ "16":"/images/ytDownloader_image_16.png", "48":"/images/ytDownloader_image_48.png", "128":"/images/ytDownloader_image_128.png" }, "permissions": [ "activeTab", "tabs", "webRequest", "webNavigation", "management", "http://*/*", "https://*/*", "*://*.google.com/" ], "browser_action": { "default_popup" :"popup.html" }, "background":{ "scripts":["/js/jquery-3.5.1.min.js","background.js"], "persistent": true }, "manifest_version": 2 }`

Por favor, ayúdame :)

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!