1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Add send wakatimeHeartBeat on constructor CodeEditor to fix when change from Markdown to Snippet #2810

This commit is contained in:
Luis Reinoso
2019-03-12 22:14:10 -05:00
parent 39a98e795f
commit a0f5a06c73

View File

@@ -180,6 +180,11 @@ export default class CodeEditor extends React.Component {
this.editorActivityHandler = () => this.handleEditorActivity()
this.turndownService = new TurndownService()
// wakatime
const { storageKey, noteKey } = this.props
const storage = findStorage(storageKey)
if (storage) sendWakatimeHeartBeat(storage.path, noteKey, storage.name, false, false, true)
}
handleSearch (msg) {