You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However since they don't and execution is synchronous, this is an opportunity to change the behavior without breaking anything. They should return the result.
Activity
felixrieseberg commentedon Mar 13, 2018
Do you mean this API? Because it's documented to use a callback instead of a Promise.
bughit commentedon Mar 13, 2018
Where does it say "instead"?
For webFrame.executeJavaScript it says:
For webFrame.executeJavaScriptInIsolatedWorld
However since it's synchronous and unless there are plans to support async mode, it might as well return the result.
MarshallOfSound commentedon Mar 14, 2018
This is actually just incorrect docs,
webFrame.executeJavaScriptdoes not return a promise.webContents.executeJavaScriptdoes.Just need to correct the docs for
webFrameFibreFoX commentedon Dec 12, 2018
This was mentioned in an older isse before:
#9804
Maybe this should be done equal?! So it makes less confusion?!
bughit commentedon Jul 8, 2019
@MarshallOfSound
There three issues here:
bughit commentedon Jul 8, 2019
no longer applies, see #19161