-
Notifications
You must be signed in to change notification settings - Fork 941
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework RPC code and examples (#1097)
* Rename parameter "seq" (sequential number) to "id" (identifier). * Generate IDs with a length of 32 random characters. * Replace user (init) script on bind/unbind to fix bug where scripts are never removed and instead pile up for each bind/unbind operation. * JS RPC operations are now exposed through "window.__webview__". A bound function can now be invoked via JS as follows: window.__webview__.call(name, ...args) The following is still possible and forwards to "__webview__.call()": window.count(...args) * Modernize examples. * Fix/Suppress warnings
- Loading branch information
Showing
5 changed files
with
576 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.