mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 18:01:45 +08:00

* Files via command-line are opened in the best window * Don't show FSW changed notification while saving * Fixed source-code mode setting and remove focus/typewritter option * Simplify ignore list * Fix invalid dialog parameter * Fix invalid dialog parameter (2) * Use async message box dialog * Update documentation * few changes * Check timer before calling clearTimeout * Improve switch style * Fix style
26 lines
790 B
JavaScript
26 lines
790 B
JavaScript
/**
|
|
* This file is used specifically and only for development. It installs
|
|
* `vue-devtools`. There shouldn't be any need to modify this file,
|
|
* but it can be used to extend your development environment.
|
|
*/
|
|
|
|
/* eslint-disable */
|
|
require('dotenv').config()
|
|
|
|
// Install `vue-devtools`
|
|
require('electron').app.on('ready', () => {
|
|
let installExtension = require('electron-devtools-installer')
|
|
// WORKAROUND: Electron: 2.0.0 does not match required range
|
|
// https://github.com/MarshallOfSound/electron-devtools-installer/issues/73
|
|
installExtension.default(installExtension.VUEJS_DEVTOOLS.id)
|
|
.then(() => {})
|
|
.catch(err => {
|
|
console.log('Unable to install `vue-devtools`: \n', err)
|
|
})
|
|
})
|
|
|
|
/* eslint-enable */
|
|
|
|
// Require `main` process to boot app
|
|
require('./index')
|