Skip to content

Commit

Permalink
Fix bad performance.mark names causing performance.measure to fail (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube authored Dec 17, 2024
1 parent f3dff02 commit db9c07d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/js/display/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'; }
Expand Down

0 comments on commit db9c07d

Please sign in to comment.