Skip to content

Commit

Permalink
fix: preload script not loading with node integration disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Jan 16, 2024
1 parent f86cc57 commit 103150f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/applications/Application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ class ApplicationImpl extends React.PureComponent {
const tab = this.props.tab;
const useNativeWindowOpen = !this.props.notUseNativeWindowOpen;
const tabUrl = tab.get('url', '');
const nodeIntegrationEnabled = tabUrl.startsWith('station://')

const {
applicationId, applicationName, applicationIcon, themeColor, manifestURL,
Expand Down Expand Up @@ -464,7 +463,7 @@ class ApplicationImpl extends React.PureComponent {
onDidFailLoad={this.handleDidFailLoad}
onDomReady={this.handleDomReady}
onCrashed={this.handleWebcontentsCrashed}
webpreferences={`allowRunningInsecureContent=true,nativeWindowOpen=${useNativeWindowOpen},contextIsolation=false,nodeIntegration=${nodeIntegrationEnabled}`}
webpreferences={`allowRunningInsecureContent=true,nativeWindowOpen=${useNativeWindowOpen},contextIsolation=false,nodeIntegration=true`}
/>

</div>
Expand Down

0 comments on commit 103150f

Please sign in to comment.