From f8bac2d24a6b809efce0be30db6e67e11ef463c2 Mon Sep 17 00:00:00 2001 From: blagoev Date: Fri, 8 Sep 2017 19:54:37 +0300 Subject: [PATCH] Fix Chrome Debugger for RN --- lib/browser/index.js | 3 ++- lib/browser/session.js | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/browser/index.js b/lib/browser/index.js index 8caff788..693f108b 100644 --- a/lib/browser/index.js +++ b/lib/browser/index.js @@ -187,7 +187,8 @@ Object.defineProperties(Realm, { }, }, _waitForDownload: { - value: function(_config, callback) { + value: function(_config, sessionCallback, callback) { + sessionCallback(); callback(); } }, diff --git a/lib/browser/session.js b/lib/browser/session.js index 34b51261..2308d8b1 100644 --- a/lib/browser/session.js +++ b/lib/browser/session.js @@ -22,7 +22,9 @@ import { keys, objectTypes } from './constants'; import { getterForProperty, createMethods } from './util'; import { deserialize } from './rpc'; -export default class Session { } +export default class Session { + +} Object.defineProperties(Session.prototype, { url: { get: getterForProperty('url') }, @@ -31,7 +33,9 @@ Object.defineProperties(Session.prototype, { createMethods(Session.prototype, objectTypes.SESSION, [ '_refreshAccessToken', - '_simulateError' + '_simulateError', + 'addProgressNotification', + 'removeProgressNotification' ]); export function createSession(realmId, info) {