Skip to content

Commit 00d7710

Browse files
committed
fix(generator/background): use app protocol for index.html, fixes #129
1 parent d122fe6 commit 00d7710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/template/src/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function createWindow () {
2424
} else {
2525
createProtocol('app')
2626
// Load the index.html when not in development
27-
win.loadFile('index.html')
27+
win.loadURL('app://./index.html')
2828
}
2929

3030
win.on('closed', () => {

0 commit comments

Comments
 (0)