mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-01-08 13:41:59 -05:00
Let scratch-gui handle 'onbeforeunload'
This commit is contained in:
parent
c9bcd14015
commit
fcf629ba1c
1 changed files with 0 additions and 5 deletions
|
@ -18,11 +18,6 @@ document.body.appendChild(appTarget);
|
|||
GUI.setAppElement(appTarget);
|
||||
const WrappedGui = AppStateHOC(GUI);
|
||||
|
||||
if (process.env.NODE_ENV === 'production' && typeof window === 'object') {
|
||||
// Warn before navigating away
|
||||
window.onbeforeunload = () => true;
|
||||
}
|
||||
|
||||
const onStorageInit = storageInstance => {
|
||||
storageInstance.addHelper(new ElectronStorageHelper(storageInstance));
|
||||
// storageInstance.addOfficialScratchWebStores(); // TODO: do we want this?
|
||||
|
|
Loading…
Reference in a new issue