From 9a0f1c43da6b1e632799d002d6a397cd616ff19d Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Wed, 23 Oct 2024 18:51:10 -0700 Subject: [PATCH] gross --- docs/timeline_viewer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/timeline_viewer.js b/docs/timeline_viewer.js index 95e2a46..ef9eb8b 100755 --- a/docs/timeline_viewer.js +++ b/docs/timeline_viewer.js @@ -245,8 +245,9 @@ class Viewer { // monkeypatched method for devtools async fetchPatched(...args) { - const requestedURL = args.at(0); - const url = new URL(requestedURL, location.href).replace('/o/traces/', '/o/traces%2F'); + const requestedURL = args.at(0).replace('/o/traces/', '/o/traces%2F'); + args[0] = requestedURL; + const url = new URL(requestedURL, location.href); // pass through URLs that aren't our timelineURL param if (requestedURL !== this.timelineURL) {