diff options
Diffstat (limited to 'support/hololens/ServoApp/Devtools')
-rw-r--r-- | support/hololens/ServoApp/Devtools/Client.cpp | 4 | ||||
-rw-r--r-- | support/hololens/ServoApp/Devtools/Client.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/support/hololens/ServoApp/Devtools/Client.cpp b/support/hololens/ServoApp/Devtools/Client.cpp index 8a10ce65cdc..c7d1b7cfc89 100644 --- a/support/hololens/ServoApp/Devtools/Client.cpp +++ b/support/hololens/ServoApp/Devtools/Client.cpp @@ -133,7 +133,9 @@ void DevtoolsClient::HandleMessage(JsonObject obj) { // Ignore return; } else if (obj.GetNamedString(L"type") == L"tabNavigated") { - // Ignore + if (obj.HasKey(L"state") && obj.GetNamedString(L"state") == L"stop") { + mDelegate.ClearConsole(); + } return; } else if (obj.GetNamedString(L"type") == L"networkEventUpdate") { // FIXME: log if there is a non-200 HTTP response diff --git a/support/hololens/ServoApp/Devtools/Client.h b/support/hololens/ServoApp/Devtools/Client.h index 162d2e33e07..3764c201d46 100644 --- a/support/hololens/ServoApp/Devtools/Client.h +++ b/support/hololens/ServoApp/Devtools/Client.h @@ -51,6 +51,7 @@ private: class DevtoolsDelegate { public: virtual void OnDevtoolsMessage(DevtoolsMessageLevel, hstring, hstring) = 0; + virtual void ClearConsole() = 0; virtual void OnDevtoolsDetached() = 0; }; |