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