Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
refactor: update code to install vue-devtools (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
brenopolanski authored Apr 10, 2020
1 parent 0e24e53 commit 0c26541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/index.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ require('electron-debug')({ showDevTools: true })
require('electron-log')

// Install `vue-devtools`
require('electron').app.on('ready', () => {
let installExtension = require('electron-devtools-installer')
installExtension.default(installExtension.VUEJS_DEVTOOLS)
require('electron').app.whenReady().then(() => {
const { default: installExtension, VUEJS_DEVTOOLS } = require('electron-devtools-installer')
installExtension(VUEJS_DEVTOOLS)
.then(() => {})
.catch(err => {
console.log('Unable to install `vue-devtools`: \n', err)
Expand Down

0 comments on commit 0c26541

Please sign in to comment.