mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 12:22:26 +08:00

bugfix: can not save when there is no file edited optimization: Don't show welcome page when init App
21 lines
358 B
JavaScript
21 lines
358 B
JavaScript
import { ipcRenderer } from 'electron'
|
|
import bus from '../bus'
|
|
|
|
const state = {}
|
|
|
|
const getters = {}
|
|
|
|
const mutations = {}
|
|
|
|
const actions = {
|
|
LISTEN_FOR_TWEET () {
|
|
ipcRenderer.on('AGANI::tweet', (e, type) => {
|
|
if (type === 'twitter') {
|
|
bus.$emit('tweetDialog')
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
export default { state, getters, mutations, actions }
|