this is my current project structure:

```
main.js
index.html
download.html
src/index.js
src/style.css

```

`main.js` will create a BrowserWindow and load `index.html`, which loads `index.js` and `style.css`.

I'd like to create a new modal window and load `download.html` when a button is clicked in `index.html`.

here is codes from my `index.js`:

```
btn.onclick = function() {
  let win = new remote.BrowserWindow({
    parent: remote.getCurrentWindow(),
    modal: true
  })
  win.loadURL(`file://${__dirname}/download.html`)
}

```

but it's loading `file://download.html`, isn't `__dirname` existed in render process?