chore: wire sourcesChanged event to the ProtocolHandler (#18044)

https://github.com/microsoft/playwright/issues/18043
This commit is contained in:
Max Schmitt 2022-10-13 19:38:25 +03:00 committed by GitHub
parent a60073d664
commit 693ed9b19e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,9 @@ class ProtocolHandler {
this._controller.on(DebugController.Events.InspectRequested, ({ selector, locators }) => { this._controller.on(DebugController.Events.InspectRequested, ({ selector, locators }) => {
process.send!({ method: 'inspectRequested', params: { selector, locators } }); process.send!({ method: 'inspectRequested', params: { selector, locators } });
}); });
this._controller.on(DebugController.Events.SourcesChanged, sources => {
process.send!({ method: 'sourcesChanged', params: { sources } });
});
} }
async resetForReuse() { async resetForReuse() {