> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/js/all/electron/renderer.md).

# Renderer Process

Access remote

```javascript
const { dialog } = require('electron').remote
console.log(dialog);
```

Make file that works in both

```javascript
const electron = require("electron");
const dialog = electron.dialog || electron.remote.dialog; //ensure works in both main and renderer
```
