Skip to content

Commit a0f5a06

Browse files
committed
Add send wakatimeHeartBeat on constructor CodeEditor to fix when change from Markdown to Snippet #2810
1 parent 39a98e7 commit a0f5a06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

browser/components/CodeEditor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ export default class CodeEditor extends React.Component {
180180
this.editorActivityHandler = () => this.handleEditorActivity()
181181

182182
this.turndownService = new TurndownService()
183+
184+
// wakatime
185+
const { storageKey, noteKey } = this.props
186+
const storage = findStorage(storageKey)
187+
if (storage) sendWakatimeHeartBeat(storage.path, noteKey, storage.name, false, false, true)
183188
}
184189

185190
handleSearch (msg) {

0 commit comments

Comments
 (0)