Skip to content

Commit 0a3e4be

Browse files
authored
docs(guide/configuration): fix instructions for using file protocol
1 parent 5c8b578 commit 0a3e4be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guide/configuration.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ module.exports = {
123123
pluginOptions: {
124124
electronBuilder: {
125125
customFileProtocol: 'myCustomProtocol://./' // Make sure to add "./" to the end of the protocol
126-
customFileProtocol: 'file://./' // You can also revert back to the file protocol with 'file://'
126+
// If you want to use the file:// protocol, add win.loadURL(`file://${__dirname}/index.html`) to your main process file
127+
// In place of win.loadURL('app://./index.html'), and set customFileProtocol to './'
128+
customFileProtocol: './'
127129
}
128130
}
129131
}

0 commit comments

Comments
 (0)