Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

160
Visualizações
replacing "window.location" with "window.open" having no effect

I am using a click-to-call chrome extension that has a nasty habit of redirecting the call within the active window.

Obviously not the best for maintaining a workflow, and I'm not one to let an extension boss me around so I thought I'd make some tweaks, but have had no luck.

To my understanding, it should be as simple as changing window.location to window.open but it simply won't do anything once I make the change and reload it into chrome. Am I missing something?

    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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda