mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
feat: Add checkbox validation to active or deactive plugin.
This commit is contained in:
@@ -11,7 +11,11 @@ function sendWakatimeHeartBeat(
|
||||
hasFileChanges,
|
||||
isFileChange
|
||||
) {
|
||||
if (new Date().getTime() - lastHeartbeat > 120000 || isFileChange) {
|
||||
if (
|
||||
config.get().wakatime.isActive &&
|
||||
!!config.get().wakatime.key &&
|
||||
(new Date().getTime() - lastHeartbeat > 120000 || isFileChange)
|
||||
) {
|
||||
const notePath = path.join(storagePath, 'notes', noteKey + '.cson')
|
||||
|
||||
if (!isWrite && !hasFileChanges && !isFileChange) {
|
||||
|
||||
Reference in New Issue
Block a user