Skip to content

How to access to Electron webContents? Or other electron APIs #166

Closed Answered by simonhamp
elfeffe asked this question in Q&A
Discussion options

You must be logged in to vote

I don't believe you can currently. I think you'd inject the Electron API's to your Laravel app's front-end Javascript and we don't do that for you (it's your front-end).

I'm sure there will be cases where that becomes useful, but the intention is to make the runtime's APIs (in this case Electron) available through a consistent interface, via the Laravel back-end.

Basically, whenever you're reaching to do something that's typically provided by Electron, if there isn't an interface in NativePHP for how to do it, that should become a feature request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by simonhamp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants