Answer the question
In order to leave comments, you need to log in
How to pass JSON and call a function in page context?
There is a content script, it contains the following:
var script = document.createElement('script');
script.textContent = 'window.autofill_lead = ' + JSON.stringify(request.lead) + ';';
document.head.appendChild(script);
console.log(window.autofill_lead)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question