mirror of
https://github.com/Zaarrg/stremio-community-v5.git
synced 2026-05-06 02:09:11 +00:00
Change to send as String instead of Json Webview ipc
This commit is contained in:
parent
b69b78caa4
commit
3c2ce2f815
1 changed files with 2 additions and 2 deletions
|
|
@ -122,7 +122,7 @@ void SendToJS(const std::string &eventName, const nlohmann::json &eventData)
|
|||
// Serialize to wstring + Post
|
||||
std::string payload = msg.dump();
|
||||
std::wstring wpayload(payload.begin(), payload.end());
|
||||
g_webview->PostWebMessageAsJson(wpayload.c_str());
|
||||
g_webview->PostWebMessageAsString(wpayload.c_str());
|
||||
|
||||
#ifdef DEBUG_BUILD
|
||||
std::cout << "[Native->JS] " << payload << "\n";
|
||||
|
|
@ -255,7 +255,7 @@ void HandleInboundJSON(const std::string &msg)
|
|||
|
||||
std::string payload = root.dump();
|
||||
std::wstring wpayload(payload.begin(), payload.end());
|
||||
g_webview->PostWebMessageAsJson(wpayload.c_str());
|
||||
g_webview->PostWebMessageAsString(wpayload.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue