Webview preload not working


#1

Hello!

I create electon applicaton from index.html page :wink:
In index.html page i create webview element, like this:
<webview id="trello" src="https://trello.com" disablewebsecurity preload="./webview.js"></webview>

But when i open devtools i get this error:
Unable to load preload script: D:\<%path_to_my_work_folder%>\webview.js

How to fix this? How to load javascript file?

P.S: Yes, i create webview.js in root of project folder :wink: