Skip to content

Commit

Permalink
Ope
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Jan 16, 2025
1 parent 0a61fd8 commit c772651
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/repl/app/utils/editor-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ export class FileURIComponent {
if (macroCondition(isTesting())) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
base ??= (this.router as any) /* private API? */?.location;
// @ts-expect-error private api
base = base.split('?')[0];
} else {
base ??= window.location.toString();
}
Expand Down Expand Up @@ -182,6 +184,7 @@ export class FileURIComponent {
qps.delete('t');
qps.set('format', formatFrom(format));

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

0 comments on commit c772651

Please sign in to comment.