A
A
alehandroWEB2018-09-13 09:33:47
JavaScript
alehandroWEB, 2018-09-13 09:33:47

How to manage browser background page?

There is a web dialer application based on sip.js. It needs to be designed as a browser extension so that it works in the background.

"background": {
        "page": "index.html",
        "persistent": true
    },
"browser_action": {
        "default_icon": "icon.png",
        "default_popup": "popup.html"
    },

The question is how to manage this index.html from the popup?
Via:
chrome.runtime.getBackgroundPage(function(page){
  console.log(page.document);
});

I get a link to the document of the background page. What should I do next if I'm moving in the right direction?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question