Answer the question
In order to leave comments, you need to log in
How to establish command/message exchange between scripts?
I am writing an application in Electron.
On the page there is an element <webview>
in which the instagram site is loaded. Also, using the preload attribute , a script is connected to this site that should perform various actions on the Instagram site.
<webview id="webview" preload="./js/inject.js" src="https://www.instagram.com/"></webview>
<webview>
this way. I write all the logic in the scripts of the application itself, and <webview>
send only commands to the page.var obj = document.getElementById('webview');
obj.executeJavaScript("$('._fcn8k').remove();");
In this case, you do not need to connect anything via "preload" at all. 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