feat: update package.json dependencies and enhance webview handling
- Removed the outdated @electron-toolkit/preload dependency and re-added it with the correct version. - Added a new event listener in WindowService to set the preload script for webviews. - Updated the openExternal method in preload to handle potential null values. - Enabled node integration for webviews in the MinApp component for improved functionality.
This commit is contained in:
@@ -151,6 +151,7 @@ const PopupContainer: React.FC<Props> = ({ app, resolve }) => {
|
||||
style={WebviewStyle}
|
||||
allowpopups={'true' as any}
|
||||
partition="persist:webview"
|
||||
nodeintegration={true}
|
||||
/>
|
||||
)}
|
||||
</Drawer>
|
||||
|
||||
Reference in New Issue
Block a user