Fixed issue with reloading bundle from remote debugger

Summary: This is a follow up to D8316215. That diff had a flaw in that once appExecuted was set to true it would never be reset back to false. This fixes that so if another bundle is loaded after the first one it will work.

Reviewed By: rafeca

Differential Revision: D8661523

fbshipit-source-id: 5f6024102248383f64952fd33b37368732d5f900
This commit is contained in:
Martin Sherburn 2018-07-11 04:18:34 -07:00 committed by Facebook Github Bot
parent 1535ecfa54
commit 578b0b2a51

View File

@ -179,6 +179,7 @@
shutdownJSRuntime();
Page.setState({status: {type: 'disconnected'}});
} else if (object.method === 'executeApplicationScript') {
appExecuted = false;
worker.postMessage({
...object,
url: await getBlobUrl(object.url),