Comments (2)
The right way to listen for sync message in browser is:
ipc.on 'browser-data-request', (event, processId, messageId, message) ->
event.result = "THIS SOME DATA FROM THE BROWSER"
This interface doesn't look very nice, but it's the easiest one to implement. I'll make the document more clear.
from electron.
It's working great now! Thanks!
from electron.
Related Issues (20)
- [Bug]: Dump files cannot be generated on mac HOT 4
- [Feature Request]: Event: 'did-change-theme-color'支持全量的css color (主要支持透明度),不解析也行,直接callback meta content
- [Bug]: clipboard.read cannot get anything. HOT 1
- [Bug]: Calling .center() on BrowserWindow with parent now centers relative to parent instead of screen HOT 5
- [Bug]: Missing support for Persistent Permissions with the File System Access API as of Chrome 122
- [Bug]: Issue with GTM and google analytics HOT 3
- [Bug]: Windows 10 32bit render process gone while <input type="file" /> in html file
- after moving my diolog code from BrowserView to WebContentsView i am having rendering and crashing issues. HOT 4
- [Bug]: Unexpected Massive Download of Chromium Files During Electron Update HOT 3
- segfault (object partially on an unallocated page — possible UaF?) in ElectronDesktopWindowTreeHostLinux::OnWindowTiledStateChanged(ui::WindowTiledEdges) HOT 5
- [Bug]: Crash when maximizing window if handling protocol HOT 2
- [Bug]: Most Electron apps delete all your bitmap fonts from your user font cache on Linux immediately upon startup. HOT 2
- [Feature Request]: Hardware accelerated off-screen rendering HOT 2
- [Bug]: recentDocuments not populating
- [Bug]: Crash when adding child view HOT 4
- Electron SIGSEGV Error When Running in Docker Container HOT 2
- [Bug]: HTML Drag and Drop API not returning event.dataTransfer.files array consistently on all Electron versions
- [Bug]: BrowserView's content is visually wiped when vibrancy is set on Electron version 30 and up
- [Bug]: node_modules/electron/dist/electron exited with signal SIGSEGV HOT 1
- [Bug]: Clicking on the color picker doesn't do anything HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron.