Skip to content

Commit c5361d6

Browse files
committed
Change the 'is-ready' message after profiler changed its postMessage API
This is changed in firefox-devtools/profiler#5148. Previously we were using 'is-ready' for both the request and the response. Now we are using two distinct messages on both for clarity.
1 parent c8df4f6 commit c5361d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ <h1 id="power"><span id="deviceNameH1">USB</span> live profile: <span id="lastPo
359359

360360
let isReady = false;
361361
window.addEventListener("message", function listener(event) {
362-
if (event.data && event.data.name === "is-ready") {
362+
if (event.data && event.data.name === "ready:response") {
363363
window.removeEventListener("message", listener);
364364
isReady = true;
365365
const message = {
@@ -375,7 +375,7 @@ <h1 id="power"><span id="deviceNameH1">USB</span> live profile: <span id="lastPo
375375
if (isReady) {
376376
break;
377377
}
378-
profilerWindow.postMessage({ name: "is-ready" }, origin);
378+
profilerWindow.postMessage({ name: "ready:request" }, origin);
379379
}
380380
}
381381

0 commit comments

Comments
 (0)