neutralinojs icon indicating copy to clipboard operation
neutralinojs copied to clipboard

How to inject js lib to call Neutralino API from remote URLs?

Open lexesv opened this issue 3 years ago • 3 comments

lexesv avatar Jun 26 '22 14:06 lexesv

Seems like #586 was looking at tackling this but not sure if it's exactly the same. I'm also looking for a way to inject a script into remote URL.

Looks like there's an executeJavascript function which uses eval on nativeWindow but it doesn't look to be usable from JS code.

@shalithasuranga Is there any option for window mode? Or is it only possible with chrome mode and loading a chrome extension?

kikixxNFT avatar Jul 24 '22 10:07 kikixxNFT

Please pay attention to my question.

lexesv avatar Dec 13 '22 17:12 lexesv

By Editing C++ codes, we can insert our own JS,

I have tried that it works. Maybe we can add an "injectJS" param in neutralino.config.json and read it in C++, then apply to webview.

image

zeyios avatar Nov 05 '23 07:11 zeyios