Skip to content

Commit

Permalink
Merge pull request #3 from jkcdarunday/master
Browse files Browse the repository at this point in the history
fix: Use optional chaining operator in windowId.toString to avoid err…
  • Loading branch information
Interpause authored Jun 4, 2024
2 parents 91efa13 + ce377a3 commit 89abce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kwinscript/driver/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export class DriverWindowImpl implements DriverWindow {

public toString(): string {
// Using a shorthand name to keep debug message tidy
return `KWin(${this.client.windowId.toString(16)}.${
return `KWin(${this.client.windowId?.toString(16)}.${
this.client.resourceClass
})`;
}
Expand Down

0 comments on commit 89abce4

Please sign in to comment.