Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Jan 19, 2025
1 parent de7e456 commit 7e1f5fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Flags extends EventEmitter {
constructor() {
super();
// Don't assume that window exists (e.g. searching)
const qs = new URLSearchParams(globalThis.location.hash?.slice?.(1) ?? "");
const qs = new URLSearchParams(globalThis.location?.hash?.slice?.(1) ?? "");
this.DebugView = qs.get("debug")
? DebugLevel.PhysicsOverlay
: DebugLevel.None;
Expand Down
2 changes: 1 addition & 1 deletion src/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class GameWorld {
}

constructor(
private readonly rapierWorld: World,
public readonly rapierWorld: World,
protected readonly ticker: Ticker,
) {}

Expand Down

0 comments on commit 7e1f5fd

Please sign in to comment.