Skip to content

Commit

Permalink
fix lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
roth-dev committed Jan 21, 2025
1 parent 176be81 commit 9061fb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/iframe-driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ class ElectronConnection {
}

query(stmt: string): Promise<DatabaseResultSet> {
return window.outerbaseIpc.query(stmt);
return window.outerbaseIpc?.query(stmt);
}

transaction(stmts: string[]): Promise<DatabaseResultSet[]> {
return window.outerbaseIpc.transaction(stmts);
return window.outerbaseIpc?.transaction(stmts);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/window.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export {};

type OuterbaseIpc = {
docs?: SavedDocDriver;
[key: string]: any;
};
declare global {
interface Window {
Expand Down

0 comments on commit 9061fb3

Please sign in to comment.