-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CefParseJSON instead of V8 context for JS responses
Nlohmann's `dump()` uses a different method of escaping characters in strings than V8 does, resulting in `JSON.parse()` failing and the JS commands never returning a value. Instead, pass the Nlohmann `dump()` string directly into CEF's JSON parser, convert it into a CefV8Value that V8 will recognise, then forward the resulting value to the callback. Fixes #390
- Loading branch information
Showing
1 changed file
with
53 additions
and
8 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