Enable vue3 devtools
This commit is contained in:
parent
5a429eb88e
commit
a67be5be4a
|
@ -7,17 +7,16 @@
|
|||
|
||||
/* eslint-disable */
|
||||
|
||||
import installExtension, { VUEJS3_DEVTOOLS } from 'electron-devtools-installer'
|
||||
|
||||
// Install `electron-debug` with `devtron`
|
||||
require('electron-debug')({ showDevTools: true })
|
||||
|
||||
// Install `vue-devtools`
|
||||
require('electron').app.on('ready', () => {
|
||||
let installExtension = require('electron-devtools-installer')
|
||||
installExtension.default(installExtension.VUEJS_DEVTOOLS)
|
||||
.then(() => {})
|
||||
.catch(err => {
|
||||
console.log('Unable to install `vue-devtools`: \n', err)
|
||||
})
|
||||
installExtension(VUEJS3_DEVTOOLS)
|
||||
.then(name => console.log(`Added Extension: ${name}`))
|
||||
.catch(err => console.log('Unable to install `vue-devtools`: \n', err))
|
||||
})
|
||||
|
||||
// Require `main` process to boot app
|
||||
|
|
|
@ -32,7 +32,7 @@ export default {
|
|||
})
|
||||
},
|
||||
created() {
|
||||
this.$store.dispatch('App/watchShortcutsEvents')
|
||||
this.$store.dispatch('App/watchShortcutEvents')
|
||||
this.$store.dispatch('App/loadPreferences').then(conf => {
|
||||
this.$i18n.locale = conf.language.language
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue