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:
@@ -180,6 +180,11 @@ export default class CodeEditor extends React.Component {
|
|||||||
this.editorActivityHandler = () => this.handleEditorActivity()
|
this.editorActivityHandler = () => this.handleEditorActivity()
|
||||||
|
|
||||||
this.turndownService = new TurndownService()
|
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) {
|
handleSearch (msg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user