Skip to content

Commit

Permalink
updating developer mode params and settings code.
Browse files Browse the repository at this point in the history
  • Loading branch information
camillobruni committed Jan 16, 2024
1 parent dc13bec commit 30977c9
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions resources/developer-mode.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export function createDeveloperModeContainer() {
return container;
}


function span(text) {
const span = document.createElement("span");
span.textContent = text;
Expand Down Expand Up @@ -224,14 +223,14 @@ function createUIForSuites() {

function createUIForRun() {
let button = document.createElement("button");
button.textContent = `Start Test`;
button.textContent = "Start Test";
button.onclick = (event) => {
globalThis.benchmarkClient.start();
}
};
let buttons = document.createElement("div");
buttons.className = "button-bar";
buttons.appendChild(button);
return buttons
return buttons;
}

function updateURL() {
Expand Down Expand Up @@ -274,12 +273,7 @@ function updateURL() {
else
url.searchParams.delete("measurementMethod");

const boolParamKeys = [
"iterationCount",
"useWarmupSuite",
"warmupBeforeSync",
"waitBeforeSync",
];
const boolParamKeys = ["iterationCount", "useWarmupSuite", "warmupBeforeSync", "waitBeforeSync"];
for (const paramKey of boolParamKeys) {
if (params[paramKey] !== defaultParams[paramKey])
url.searchParams.set(paramKey, params[paramKey]);
Expand Down

0 comments on commit 30977c9

Please sign in to comment.