create-nw-react-app
create-nw-react-app copied to clipboard
webview and addContentScripts
Hi. I made an app which display a website in a webview. This app will be use in a kiosk, so i'm looking to add a virtual keybord when focus is on inputs on my embeded website in the webview.
To do this, i inject css and js to my webview like this:
this.webview.current.addContentScripts([{ name: 'rule', matches: ['<all_urls>'], css: { files: ['js-keyb.css'] }, js: { files: ['js-keyb.js','inject.js'] }, run_at: 'document_end'}] );
This work, but only if i put my css et js files invoqued in the Build folder.
I can't use files that are in my react's public folder (try differents paterns to file path, but no one is working).
How can use css and js files put in my public folder ?
thank you