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

144
Views
reemplazar "ventana.ubicación" con "ventana.abrir" sin efecto

Estoy usando una extensión de Chrome de hacer clic para llamar que tiene la desagradable costumbre de redirigir la llamada dentro de la ventana activa.

Obviamente no es lo mejor para mantener un flujo de trabajo, y no soy de los que dejan que una extensión me mande, así que pensé en hacer algunos ajustes, pero no tuve suerte.

Según tengo entendido, debería ser tan simple como cambiar window.location a window.open , pero simplemente no hará nada una vez que realice el cambio y lo vuelva a cargar en Chrome. ¿Me estoy perdiendo de algo?

 chrome.storage.sync.get(['disabled', window.location.origin], function(result) { checked = result.disabled; chrome.runtime.onMessage.addListener(function(request) { switch (request.type) { case 'selectionVod': window.location = ("votel://" + request.info.selectionText); break; case 'selectionVcc': chrome.storage.sync.get(['vccPlatform'], function(result) { var vccPlatform = result.vccPlatform; if (vccPlatform && vccPlatform.includes('odcc')) { window.location = ("https://" + vccPlatform + ".providerdomain.ca/AGUI/make_call.php?phone=" + request.info.selectionText); } else { window.location = ("https://vcc-" + vccPlatform + ".providerdomain.com/AGUI/make_call.php?phone=" + request.info.selectionText); } });```
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!