mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-01-08 13:41:59 -05:00
Scratch 3.0 as a self-contained desktop application
64a06d5b8f
The `scratch-gui` project saver uses `onbeforeunload` to request confirmation before navigating away from an unsaved project. Unfortunately Electron suppresses the confirmation dialog that browsers would normally display. Instead, Electron offers a `will-prevent-unload` event in the main process: this event fires when `onbeforeunload` requests a confirmation dialog. This change adds a handler for `will-prevent-unload` which displays a quit confirmation dialog so that the overall behavior is similar to what happens in a regular browser. |
||
---|---|---|
scripts | ||
src | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.npmignore | ||
electron-webpack.json5 | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
TRADEMARK | ||
webpack.main.additions.js | ||
webpack.renderer.additions.js |
scratch-desktop
Scratch 3.0 as a standalone desktop application