mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-02 01:36:12 +00:00
Merge pull request #1373 from realm/fix-RN-debugging-android
Fix rn debugging android
This commit is contained in:
commit
1fb5d65e94
@ -158,6 +158,11 @@ class RealmReactModule extends ReactContextBaseJavaModule {
|
||||
e.printStackTrace();
|
||||
}
|
||||
final String json = map.get("postData");
|
||||
if (json == null) {
|
||||
Response response = newFixedLengthResponse("");
|
||||
response.addHeader("Access-Control-Allow-Origin", "http://localhost:8081");
|
||||
return response;
|
||||
}
|
||||
final String jsonResponse = processChromeDebugCommand(cmdUri, json);
|
||||
|
||||
Response response = newFixedLengthResponse(jsonResponse);
|
||||
|
Loading…
x
Reference in New Issue
Block a user