[RN] Fix remote JS debugging

This commit is contained in:
Lyubo Marinov
2017-03-01 21:33:49 -06:00
parent acd83ede2f
commit aef6e33c91
4 changed files with 21 additions and 21 deletions

View File

@@ -40,7 +40,8 @@ function _setWebRTCReady(store, next, action) {
// execution enviroment has changed. The current location is not necessarily
// available through window.location (e.g. on mobile) but the following
// works at the time of this writing.
const windowLocation = window.location;
const windowLocation
= store.getState()['features/app'].app.getWindowLocation();
if (windowLocation) {
const href = windowLocation.href;