Skip to content

Commit db9c07d

Browse files
authored
Fix bad performance.mark names causing performance.measure to fail (#1676)
1 parent f3dff02 commit db9c07d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/js/display/display.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ export class Display extends EventDispatcher {
787787
async _onStateChanged() {
788788
if (this._historyChangeIgnore) { return; }
789789

790-
performance.mark('display:onStateChanged:start');
790+
performance.mark('display:_onStateChanged:start');
791791

792792
/** @type {?import('core').TokenObject} */
793793
const token = {}; // Unique identifier token
@@ -809,7 +809,7 @@ export class Display extends EventDispatcher {
809809
performance.measure('display:clear', 'display:clear:start', 'display:clear:end');
810810

811811
// Prepare
812-
performance.mark('display:prepare:start');
812+
performance.mark('display:_onStateChanged:prepare:start');
813813
const urlSearchParams = new URLSearchParams(location.search);
814814
let type = urlSearchParams.get('type');
815815
if (type === null && urlSearchParams.get('query') !== null) { type = 'terms'; }

0 commit comments

Comments
 (0)