here is electron doc ex:
<webview src="https://www.github.com/" preload="./test.js"></webview>
how to preload multi js like:
<webview src="https://www.github.com/" preload="./test.js,./test2.js"></webview>
here is electron doc ex:
<webview src="https://www.github.com/" preload="./test.js"></webview>
how to preload multi js like:
<webview src="https://www.github.com/" preload="./test.js,./test2.js"></webview>
In electron > webview > preload doc say:
so I can use nodejs
require
in js, following is my code:test.html
app.js