fix: dialog is not defined (#31180)

Corrects the following error in Electron Fiddle:

```
Uncaught Exception:
ReferenceError: dialog is not defined
...
```
This commit is contained in:
Ryan Johnson 2021-10-03 20:12:55 -05:00 committed by GitHub
parent e53bd1b72a
commit 6db8d7918d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
// Modules to control application life and create native browser window // Modules to control application life and create native browser window
const { app, BrowserWindow, ipcMain, shell } = require('electron') const { app, BrowserWindow, ipcMain, shell, dialog } = require('electron')
const path = require('path') const path = require('path')
let mainWindow; let mainWindow;