mirror of https://github.com/status-im/metro.git
[ReactNative] Fix Chrome debugger
This commit is contained in:
parent
d108061db3
commit
10cd77b533
|
@ -41,13 +41,13 @@ var messageHandlers = {
|
||||||
window.localStorage.setItem('sessionID', message.id);
|
window.localStorage.setItem('sessionID', message.id);
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
},
|
},
|
||||||
'executeApplicationScript:sourceURL:onComplete:': function(message, sendReply) {
|
'executeApplicationScript': function(message, sendReply) {
|
||||||
for (var key in message.inject) {
|
for (var key in message.inject) {
|
||||||
window[key] = JSON.parse(message.inject[key]);
|
window[key] = JSON.parse(message.inject[key]);
|
||||||
}
|
}
|
||||||
loadScript(message.url, sendReply.bind(null, null));
|
loadScript(message.url, sendReply.bind(null, null));
|
||||||
},
|
},
|
||||||
'executeJSCall:method:arguments:context:callback:': function(message, sendReply) {
|
'executeJSCall': function(message, sendReply) {
|
||||||
var returnValue = [[], [], [], [], []];
|
var returnValue = [[], [], [], [], []];
|
||||||
try {
|
try {
|
||||||
if (window && window.require) {
|
if (window && window.require) {
|
||||||
|
|
Loading…
Reference in New Issue