Skip to content

Commit 4ea1553

Browse files
committed
fix(devtools): installVueDevtools() not returning a promise, closes #122
1 parent 58040fc commit 4ea1553

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generator/template/src/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ app.on('activate', () => {
5555
app.on('ready', async () => {
5656
if (isDevelopment && !process.env.IS_TEST) {
5757
// Install Vue Devtools
58-
installVueDevtools()
58+
await installVueDevtools()
5959
}
6060
createWindow()
6161
})

lib/installVueDevtools/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const install = (forceDownload = false) => {
2828
BrowserWindow.getDevToolsExtensions &&
2929
BrowserWindow.getDevToolsExtensions()[extensionName]
3030
if (!forceDownload && extensionInstalled) {
31-
return Promise.resolve(IDMap[chromeStoreID])
31+
return resolve(IDMap[chromeStoreID])
3232
}
3333
downloadChromeExtension(chromeStoreID, forceDownload).then(
3434
extensionFolder => {

0 commit comments

Comments
 (0)