Skip to content

Commit c772651

Browse files
committed
Ope
1 parent 0a61fd8 commit c772651

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/repl/app/utils/editor-text.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ export class FileURIComponent {
151151
if (macroCondition(isTesting())) {
152152
// eslint-disable-next-line @typescript-eslint/no-explicit-any
153153
base ??= (this.router as any) /* private API? */?.location;
154+
// @ts-expect-error private api
155+
base = base.split('?')[0];
154156
} else {
155157
base ??= window.location.toString();
156158
}
@@ -182,6 +184,7 @@ export class FileURIComponent {
182184
qps.delete('t');
183185
qps.set('format', formatFrom(format));
184186

187+
// @ts-expect-error this works
185188
if (this.#qps?.c === qps.get('c') && this.#qps?.format === qps.get('format')) {
186189
// no-op, we should not have gotten here
187190
// it's a mistake to have tried to have update QPs.

0 commit comments

Comments
 (0)