sveltejs / sapper-studio

An electron app for building Sapper projects
Other
220 stars 25 forks source link

Fixes for Electron 5 and 6 #40

Open rdb opened 4 years ago

rdb commented 4 years ago

Electron 5 defaults nodeIntegration and webviewTag to false, so this is needed for require() and the webview tag to work.

Electron 6 replaces the callback argument to showOpenDialog with a returned promise, so this is needed to restore functionality to the create/open dialogs. However, this breaks running with older Electron versions.