So when I create a webview element using JavaScript (document.createElement) all it's functions are undefined.
Shortly:
let wv = document.createElement("webview");
wv.loadURL("https://google.com");
Returns:
Uncaught TypeError: wv.loadURL is not a function
How do I fix it?
Also yes, I do have webviewTag enabled in main process' webPerferences.