mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Allow embedder to bypass devtools prompt
This commit is contained in:
parent
3f999ce785
commit
8cf2f14baa
16 changed files with 83 additions and 35 deletions
|
@ -31,6 +31,11 @@ void DevtoolsClient::Run() {
|
|||
connecting.Completed([=](const auto &, const auto &) {
|
||||
mDataReader = DataReader(socket.InputStream());
|
||||
mDataWriter = DataWriter(socket.OutputStream());
|
||||
|
||||
JsonObject out;
|
||||
out.Insert(L"auth_token", JsonValue::CreateStringValue(mToken));
|
||||
Send(out);
|
||||
|
||||
mReceiveOp = {Loop()};
|
||||
mReceiveOp->Completed([=](const auto &, const auto &) {
|
||||
mReceiveOp = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue