marktext/src/renderer/store/tweet.js
Jocs 8c392a7a5c feature: feedback via twitter
bugfix: can not save when there is no file edited
optimization: Don't show welcome page when init App
2018-06-12 19:42:31 +08:00

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 }