From c23bafcaa7998d259387912528eb0ba1e52c12cb Mon Sep 17 00:00:00 2001 From: Camillo Bruni Date: Wed, 9 Oct 2024 17:45:53 -0400 Subject: [PATCH] revert non-essential changes --- resources/developer-mode.mjs | 2 +- resources/main.mjs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/developer-mode.mjs b/resources/developer-mode.mjs index fd413ccc7..32247f9f8 100644 --- a/resources/developer-mode.mjs +++ b/resources/developer-mode.mjs @@ -279,7 +279,7 @@ function updateURL() { } } - if (params.measurementMethod !== defaultParams.measurementMethod) + if (params.measurementMethod !== "raf") url.searchParams.set("measurementMethod", "timer"); else url.searchParams.delete("measurementMethod"); diff --git a/resources/main.mjs b/resources/main.mjs index 63cad502b..c406205cf 100644 --- a/resources/main.mjs +++ b/resources/main.mjs @@ -23,12 +23,12 @@ class MainBenchmarkClient { this._showSection(window.location.hash); } - async start() { - if (await this._startBenchmark()) + start() { + if (this._startBenchmark()) this._showSection("#running"); } - async _startBenchmark() { + _startBenchmark() { if (this._isRunning) return false;