Skip to content

Commit

Permalink
build: fix build failed at 160a0bb
Browse files Browse the repository at this point in the history
  • Loading branch information
ductridev committed Oct 14, 2024
1 parent 160a0bb commit 5586bc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isVersionGreaterOrEqual } from './src/common/utils';
const electronVersion = process.versions.electron;

// Check if WebContentsView exists and if the version is >= 29.0.0
let WebContentsView_: any; // Use 'any' for dynamic checking
let WebContentsView_: any = undefined; // Use 'any' for dynamic checking

if (isVersionGreaterOrEqual('29.0.0', electronVersion) && 'WebContentsView' in Electron) {
WebContentsView_ = Electron.WebContentsView; // Assign if it exists
Expand Down

0 comments on commit 5586bc4

Please sign in to comment.