From db9c07d8920b85dc5c6c065a76f950d4eeafd95f Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Tue, 17 Dec 2024 09:50:20 -0500 Subject: [PATCH] Fix bad performance.mark names causing performance.measure to fail (#1676) --- ext/js/display/display.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/js/display/display.js b/ext/js/display/display.js index 49404cc28..5730b292f 100644 --- a/ext/js/display/display.js +++ b/ext/js/display/display.js @@ -787,7 +787,7 @@ export class Display extends EventDispatcher { async _onStateChanged() { if (this._historyChangeIgnore) { return; } - performance.mark('display:onStateChanged:start'); + performance.mark('display:_onStateChanged:start'); /** @type {?import('core').TokenObject} */ const token = {}; // Unique identifier token @@ -809,7 +809,7 @@ export class Display extends EventDispatcher { performance.measure('display:clear', 'display:clear:start', 'display:clear:end'); // Prepare - performance.mark('display:prepare:start'); + performance.mark('display:_onStateChanged:prepare:start'); const urlSearchParams = new URLSearchParams(location.search); let type = urlSearchParams.get('type'); if (type === null && urlSearchParams.get('query') !== null) { type = 'terms'; }